ReadonlycolliderThe collider that was hit. Null if the collider has been destroyed.
ReadonlydistanceHow far the cast travelled from its start before contact. For a sphere cast this is how far the sphere's center moved, so it can be up to one radius less than the distance to position.
ReadonlynormalSurface normal on the collider at the point of intersection.
ReadonlypositionWorld-space position at the point of intersection.
ReadonlytInterpolant along the cast from start to end, in the range [0, 1].
ReadonlytriangleThe hit triangle, if it exists. This is set on intersection with mesh-based colliders, and null otherwise.
StaticgetReturns 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 result returned by SpecsInteractionModule's cast queries. See SpecsInteractionModule#rayCast, SpecsInteractionModule#rayCastAll, SpecsInteractionModule#sphereCast, and SpecsInteractionModule#sphereCastAll. For overlap detection, see OverlapProbe.
Since
Lens Scripting Version 375
Snap OS
Example