Skip to content

RayResult

RayResult is a data type that contains data about a raycast result.

Constructors

NameDescription
Instance InstanceThe instance hit by the raycast.
Vector3 PositionThe position the ray made contact at.
float DistanceThe distance between the hit and origin.
Vector3 NormalThe normal of the surface the ray hit.