box-pile
✓ Published0🌍 Public
11wheel
Last edited Aug 16, 2017
Created on Aug 16, 2017
This example demonstrates a physics simulation of a pile of boxes being struck by spheres. Clicking the canvas shoots a sphere at the stack, causing the boxes to tumble and scatter in real time. The simulation is built with Bullet Physics, ported to JavaScript as ammo.js, and rendered in 3D using the regl library with canvas/WebGL. Both the boxes and the ground plane use Phong shading, with a camera view that is set via matrix transformations.
AI-generated descriptionForked from ammo.js + regl