RaycastResult
Interface representing the result of a raycast operation.
Properties
distance
distance:
number
The distance of the raycast
faceIndices?
optionalfaceIndices:Uint16Array
The indices of the raycasted face
facePoints?
optionalfacePoints:Float32Array
The points of the raycasted face
fragments
fragments:
FragmentsModel
The Fragments model that was hit
frustum
frustum:
Frustum
The frustum used for the raycast
itemId
itemId:
number
The item ID
localId
localId:
number
The local ID of the item
normal?
optionalnormal:Vector3
The normal of the raycast
object
object:
Object3D<Object3DEventMap>
The object that was hit
point
point:
Vector3
The point of the raycast
ray?
optionalray:Ray
The ray used for the raycast
rayDistance?
optionalrayDistance:number
The distance of the raycast from the ray origin
representationClass
representationClass:
RepresentationClass
The representation class of the raycast
snappedEdgeP1?
optionalsnappedEdgeP1:Vector3
The first edge of the snapped edge
snappedEdgeP2?
optionalsnappedEdgeP2:Vector3
The second edge of the snapped edge
snappingClass
snappingClass:
SnappingClass
The snapping class of the raycast