Options
All
  • Public
  • Public/Protected
  • All
Menu

Pick result returned by Scene.pick.

Hierarchy

  • PickResult

Index

Constructors

Properties

entity: null | Entity

Picked entity. Null when no entity was picked.

pickSurfacePrecision: boolean

True when the picked surface position is full precision. When false, the picked surface position should be regarded as approximate. Full-precision surface picking is performed with the Scene.pick method's pickSurfacePrecision option.

primIndex: number

Index of primitive that was picked. -1 when no entity was picked.

primitive: string

Type of primitive that was picked - usually "triangle". Null when no primitive was picked.

Accessors

  • get bary(): number[]
  • get canvasPos(): number[]
  • get direction(): number[]
  • get indices(): Int32Array
  • get localPos(): number[]
  • get origin(): number[]
  • get uv(): number[]
  • get viewPos(): number[]
  • get worldNormal(): number[]
  • get worldPos(): number[]

Generated using TypeDoc