Need help with verlet-js?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

subprotocol
3.6K Stars 467 Forks Other 62 Commits 14 Opened issues

Description

A simple Verlet physics engine written in javascript

Services available

!
?

Need anything else?

Contributors list

# 33,348
CSS
JavaScr...
Shell
47 commits
# 20,135
JavaScr...
Shell
Markdow...
Electro...
9 commits
# 50,917
luajit
fish-sh...
Firebas...
Nuxt.js
1 commit
# 32,875
Rails
graphql...
Perl
repl
1 commit

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.