Protected
constructorReadonly
colliderThe collider that was hit.
Readonly
distanceDistance from the ray origin to the point of intersection.
Readonly
normalSurface normal on the collider at the point of intersection.
Readonly
positionPosition at the point of intersection.
Set to true
to skip remaining results, if any.
Readonly
tRay interpolant at the point of intersection, in the range [0, 1].
Readonly
triangleThe 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.
Example