Fork me on GitHub

cannon.js by schteppe

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.

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 Pile RaycastVehicle RigidVehicle Shapes Single shape on a plane. Sleep SPH fluid simulation SplitSolver Spring 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