PhysicsAsteroid Field (Spatial Hash)

2000 asteroids drifting through space using the SPATIAL_HASH broadphase. Objects are spread out so most broadphase lookups skip narrowphase entirely — showcasing O(1) spatial hashing at scale. Click to spawn more.

Loading engine…
FPS: — Bodies: — Step: — Drag or tap the canvas to interact. Switch renderer with the 2D / 3D / PixiJS buttons.
GitHub

Engine features used

BroadphaseSpatial HashPerformanceParticles

Related guides

More demos

All Physics demos →