Interface PickResult<TFeature>

Pick result.

Provides information from Three.js raycasting augmented with Giro3D information.

May be extended, depending on what have been picked.

interface PickResult<TFeature> {
    distance: number;
    entity: Entity3D<Entity3DEventMap, EntityUserData>;
    features?: TFeature[];
    object: Object3D<Object3DEventMap>;
    point: Vector3;
}

Type Parameters

  • TFeature = unknown

Hierarchy (view full)

Properties

distance: number

Distance from the camera to the picked result.

Entity picked

features?: TFeature[]

Features picked (if pickFeatures enabled).

object: Object3D<Object3DEventMap>

THREE.js object picked.

point: Vector3

Point picked.