Skip to content

A simple Verlet physics engine written in javascript

License

Notifications You must be signed in to change notification settings

naveen-agula/verlet-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Verlet physics engine written in javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.0%
  • CSS 4.0%
  • HTML 3.0%