Intersection
The attributes of this Intersection used to record the result of calculation.
The attributes of this Intersection used to record the result of calculation.
Properties
object
object:
Object3D
point
point:
Vector3
distance
distance:
number
primitiveIndex
primitiveIndex:
number
primitive of the intersection for indexed geometry, it related to index buffer for non-index geometry, it is related to position buffer
distanceToRay?
optionaldistanceToRay?:number
index?
optionalindex?:number
Deprecated
use primitiveIndex instead
only exist when hit points or lines
the value maybe confused, not recommended to use
face?
optionalface?:Face3
uv?
optionaluv?:Vector2
faceIndex?
optionalfaceIndex?:number
Deprecated
use primitiveIndex instead
only exist when hit mesh
instanceIndex?
optionalinstanceIndex?:number