ReadonlycolliderThe collider that was hit.
ReadonlydistanceDistance from the ray origin to the point of intersection.
ReadonlynormalSurface normal on the collider at the point of intersection.
ReadonlypositionPosition at the point of intersection.
Set to true to skip remaining results, if any.
ReadonlytRay interpolant at the point of intersection, in the range [0, 1].
ReadonlytriangleThe hit triangle, if it exists. This is set on intersection with mesh-based colliders, and null otherwise.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Hit results of a ray-cast provided to script. See Probe.
See
Used By: Probe#rayCast, Probe#shapeCast, Probe#sphereCast
Example