Fork me on GitHub

cannon.js by schteppe

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


Go to the documentation.


Click on an image to show the corresponding example.

Cloth Shooter Mousepick Voxel landscape Worker Body types Bounce Bunny Callbacks Collision filters Pair collisions Compound shapes Constraints Container Convex Events Fixed rotation Friction Hinge Hinge Impulses Jenga Pile Ragdoll RaycastVehicle RigidVehicle Shapes Set friction per body or shape. Single shape on a plane. Sleep SPH fluid simulation SplitSolver Spring Different types of stacks Trimesh Tween

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.