Fork me on GitHub

cannon.js by schteppe

A lightweight and simple 3D physics engine for the web.

Examples

Click on an image to show the corresponding example.

Shooter Bounce Bunny Callbacks Pair collisions Compound shapes Constraints Container Convex Polyhedra Events Friction Impulses Motion states Pile Hinge Single shape on a plane. Sleep SplitSolver Different types of stacks

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