Three.js Physics Simulation Examples

Physics makes a scene respond the way people expect objects to behave: things fall, bounce, collide and come to rest. These demos show the core of a physics loop in three.js, which means applying forces such as gravity, integrating velocity into position, detecting collisions and resolving them with restitution and friction.

You will see how to step the simulation at a fixed rate and keep the rendered scene in sync with it, which is the same pattern used by full physics engines like cannon-es and Rapier. The games and science categories build on these ideas with more complex simulations.

All physics simulation demos

2 Demos