three.js's physics examples, on eulerjs
three.js's own physics examples, copied as they are, with one change: they
await EulerPhysics() from @eulerjs/scene where they awaited
RapierPhysics(). The rest of each is three.js's code, untouched.
- basic: boxes, balls and rounded boxes dropped onto a floor, one a second. (Its
RapierHelper, which draws Rapier's own debug lines, is left out.) - instancing: hundreds of instanced boxes and balls, respawned with
setMeshPositionand shaken withapplyImpulse. three.js's Jolt and Ammo instancing examples are this one with another import. - terrain: spheres, boxes and cylinders tumbling down an
addHeightfieldterrain.
The examples are three.js's, MIT licensed, © 2010-2026 three.js authors.