BACK TO 3D PLAYGROUND
EXPERIMENT 03 // THREE.JS INSTANCED PHYSICS
Three.js Instanced Ballpit
Real-time rigid body collision simulator with 250+ instanced 3D spheres, cursor kinetic gravity fields, and restitution bounce physics.
SPHERES:250
GRAVITY:0.45
● MOVE CURSOR TO REPULSE SPHERES
INSTANCEDMESH RENDERING
Single draw-call architecture using THREE.InstancedMesh to draw hundreds of physical spheres in a single GPU pass.
REPELLER FORCE VECTOR
Pointer raycaster projects cursor coordinates into 3D world space to apply inverse-square impulse forces on neighboring spheres.
BOUNDING CONSTRAINTS
3D bounding AABB frustum collisions with velocity damping and customizable wall restitution coefficients.