A simple Verlet physics engine written in javascript
JavaScript CSS
Latest commit 3293d40 May 2, 2014 @subprotocol BSA update
Permalink
Failed to load latest commit information.
css BSA update May 2, 2014
examples BSA update May 2, 2014
js check in generated js files Jun 17, 2013
lib sane gravity Jun 16, 2013
site/js BSA update May 2, 2014
LICENSE adding license Apr 10, 2013
README.md build is too complicated for readme now Jun 16, 2013
index.html BSA update May 2, 2014
package.json better build script Jun 16, 2013

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

  1. Shapes (verlet-js Hello world)
  2. Fractal Trees
  3. Cloth
  4. Spiderweb

Code Layout

  1. js/verlet-js/vec2.js: 2d vector implementation
  2. js/verlet-js/constraint.js: constraint code
  3. js/verlet-js/verlet.js: verlet-js engine
  4. js/verlet-js/objects.js: shapes and objects (triangles, circles, tires..)

Build for npm

npm run build