Intersection

The attributes of this Intersection used to record the result of calculation.

Core Interface

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?

optional distanceToRay?: number


index?

optional index?: number

Deprecated

use primitiveIndex instead only exist when hit points or lines the value maybe confused, not recommended to use


face?

optional face?: Face3


uv?

optional uv?: Vector2


faceIndex?

optional faceIndex?: number

Deprecated

use primitiveIndex instead only exist when hit mesh


instanceIndex?

optional instanceIndex?: number