entityBoxRayHit
entityBoxRayHit(
b,origin,dir):number|null
Defined in: ecs/entityBox.ts:231
How far along
Parameters
Section titled “Parameters”origin
Section titled “origin”Returns
Section titled “Returns”number | null
dir a ray from
origin travels to meet the box, or null when it misses.
The slab test in the box’s own frame. Zero half-extent is a flat box rather than a degenerate one: a ray parallel to it hits only from within its plane.