跳转到内容

entityBoxRayHit

此内容尚不支持你的语言。

entityBoxRayHit(b, origin, dir): number | null

Defined in: ecs/entityBox.ts:231

How far along

EntityBox

Vec3

Vec3

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.