Skip to content

RayQuery

Defined in: packages/engine/src/maths/solids.ts:28

A ray in metres, its direction normalised, reaching far.

Property Type Description
direction Vector3 -
far number -
origin Vector3 -
side? Side Which faces answer it. Both by default, which is what a ray cast from inside a hull needs; one side alone tells the face a solid starts at from the face it ends at, because a merge keeps each triangle’s winding.