verlet-js
About
verlet-js a simple
Verlet integration
physics engine written in javascript by
Sub Protocol
. Verlet is pronounced 'ver-ley'.
Examples
Shapes (Hello world)
Fractal Trees
Cloth
Spiderweb
Features
The following is the entity hierarchy used within verlet-js:
Simulation:
Root object that holds composite entities and drives all physics and animation within a scene.
Composites:
A high level object used within the scene (ball, bridge, cloth, etc..)
Particles:
Just a point in space that responds to gravity.
Constraints:
Links particles together so they can interact with each other.
Pin:
Binds a particle to a static/fixes position in space.
Distance:
Binds two particles together by a fixed linear distance.
Angle:
Binds 3 particles to each other by an acute angle.
License
You may use verlet-js under the terms of the very permissive MIT License.
Source Code
View project on GitHub