Skip to content

entityWorldBox

entityWorldBox(world, entity, opts?): EntityBox | null

Defined in: ecs/entityBox.ts:59

The world box of entity, or null when it has none.

Size scaled by the WORLD scale, centred by the pivot, turned by the world rotation — the three fields the renderer composes. UI nodes get null: they live in the layout’s own screen space and are hit-tested there.

ReadableWorld

number

EntityBoxOptions

EntityBox | null