The outcome of a shape test.

Fields

position:Vector3

Where the ray stopped — its far end when nothing was hit.

normal:Vector3

The surface normal at the impact point.

hit:Bool

Whether anything was struck.

entity:Null<Entity>

The entity struck, or null for world geometry.