RaycastResult Class
Storage for Ray casting data.
Constructor
RaycastResult
()
Item Index
Methods
abort
()
reset
()
Reset all result data.
Properties
_shouldStop
Boolean
private
If the ray should stop traversing the bodies.
Default: false
distance
Number
Distance to the hit. Will be set to -1 if there was no hit.
Default: -1
hasHit
Boolean
hitFaceIndex
Number
The index of the hit triangle, if the hit shape was a trimesh.
Default: -1