Play¶
Run PerfectElasticCollision in your browser. The collision is calculated by the original C++ code, compiled to WebAssembly.
- Red and blue globes have equal mass
- White lines: impulses before the collision
- Gray lines: impulses after the collision
- Check 'Demo' to let the angles change by themselves