Interface Pickable<TResult, TOptions>

Interface for Entity3Ds implementing picking.

By default, Entity3D objects implement picking via Three.js raycasting. Custom entities can implement this interface to provide an alternative picking method via pickAt.

This interface uses several generic types:

  • TResult represents the type of results returned via picking with pickAt,
  • TOptions can define additional options for picking directly on this entity or on its features.

Type Parameters

Hierarchy

  • Pickable

Implemented by

Properties

Properties

isPickable: true
pick: ((canvasCoords, options?) => TResult[])

Type declaration

    • (canvasCoords, options?): TResult[]
    • Picks objects from this entity.

      Implementations must respect at least limit and filter options.

      Parameters

      • canvasCoords: Vector2

        Coordinates on the rendering canvas

      • Optional options: TOptions

        Options

      Returns TResult[]

      Target

Generated using TypeDoc