PhysicsConvex Cast

A spinning blade sweeps obstacles using space.convexCast() and space.convexMultiCast(). The red marker is the first hit in the next frame; yellow dots are all hits within the next 0.35 s. Click to spawn dynamic bodies into the sweep zone.

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

Engine features used

ConvexCastConvexMultiCastCCDQuerySweepRaycasting

Related guides

More demos

All Physics demos →