Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Picker

Picker class

interface

Hierarchy

Index

Constructors

constructor

Properties

array

array: number[] | TypedArray | undefined

Accessors

data

  • get data(): {}

type

  • get type(): string

Methods

_applyTransformations

  • _applyTransformations(vector: Vector3, instance: any, component: Component): Vector3

_getPosition

  • _getPosition(pid: number): Vector3
  • Get object position

    abstract

    Parameters

    • pid: number

      the picking id

    Returns Vector3

    the object position

getIndex

  • getIndex(pid: number): number
  • Get the index for the given picking id

    Parameters

    • pid: number

      the picking id

    Returns number

    the index

getObject

  • getObject(pid: number): {}
  • Get object data

    abstract

    Parameters

    • pid: number

      the picking id

    Returns {}

    the object data

getPosition

  • getPosition(pid: number, instance: any, component: Component): Vector3
  • Get position for the given picking id

    Parameters

    • pid: number

      the picking id

    • instance: any

      the instance that should be applied

    • component: Component

      the component of the picked object

    Returns Vector3

    the position

Generated using TypeDoc