A lightweight and simple 3D physics engine for the web.
Documentation
Go to the documentation.
Examples
Click on an image to show the corresponding example.
What is cannon.js?
Inspired by three.js and ammo.js, and driven by the fact that the web lacks a physics engine, here comes cannon.js.
Features
- Lightweight, smaller file size than many ported physics engines.
- 100% open source JavaScript, written from scratch.
- Uses an iterative Gauss-Seidel solver to solve constraints.
- Uses the SPOOK stepper.