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.

  1. 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.)
  2. instancing: hundreds of instanced boxes and balls, respawned with setMeshPosition and shaken with applyImpulse. three.js's Jolt and Ammo instancing examples are this one with another import.
  3. terrain: spheres, boxes and cylinders tumbling down an addHeightfield terrain.

The examples are three.js's, MIT licensed, © 2010-2026 three.js authors.