updateBroadphase2D

View sourceupdateBroadphase2D(world: World): void

Rebuilds Broadphase2D from every entity with EntityHandle and PhysicsHitbox.

The system clears Broadphase2D, then pushes each entity together with its current hitbox into the configured broadphase implementation. It performs no overlap test itself. Register it directly with App#registerSystem in an update schedule.

Parameters

NameDescriptionDefault
world

World whose Broadphase2D resource is rebuilt.

—