Interface Intersection<TIntersected>

interface Intersection<TIntersected> {
    distance: number;
    distanceToRay?: number;
    point: Vector3;
    index?: number;
    face?: null | Face;
    faceIndex?: number;
    object: TIntersected;
    uv?: Vector2;
    uv1?: Vector2;
    normal?: Vector3;
    instanceId?: number;
    pointOnLine?: Vector3;
    batchId?: number;
}

Type Parameters

Properties

distance: number

Distance between the origin of the ray and the intersection

distanceToRay?: number
point: Vector3

Point of intersection, in world coordinates

index?: number
face?: null | Face

Intersected face

faceIndex?: number

Index of the intersected face

object: TIntersected

The intersected object

uv?: Vector2
uv1?: Vector2
normal?: Vector3
instanceId?: number

The index number of the instance where the ray intersects the THREE.InstancedMesh | InstancedMesh

pointOnLine?: Vector3
batchId?: number