项目
在 GitHub 查看
subprotocol/verlet-js
关于
使用 JavaScript 编写的简单 Verlet 物理引擎
科学与工程实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文verlet-js
A simple Verlet (pronounced 'ver-ley') physics engine written in javascript.
Particles, distance constraints, and angular constraints are all supported by verlet-js. From these primitives it is possible to construct just about anything you can imagine.
License
You may use verlet-js under the terms of the MIT License (See LICENSE).
Examples
Code Layout
- js/verlet-js/vec2.js: 2d vector implementation
- js/verlet-js/constraint.js: constraint code
- js/verlet-js/verlet.js: verlet-js engine
- js/verlet-js/objects.js: shapes and objects (triangles, circles, tires..)
Build for npm
npm run build
探索相关项目
加载中…