Interface Intersection<TIntersected>

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

Type Parameters

Hierarchy (view full)

Properties

batchId?: number
distance: number

Distance between the origin of the ray and the intersection

distanceToRay?: number
face?: null | Face

Intersected face

faceIndex?: number

Index of the intersected face

index?: number
instanceId?: number

The index number of the instance where the ray intersects the InstancedMesh

normal?: Vector3
object: TIntersected

The intersected object

point: Vector3

Point of intersection, in world coordinates

pointOnLine?: Vector3
uv?: Vector2
uv1?: Vector2