Home Reference Source
import PickingInputSource from 'potassium-es/src/input/PickingInputSource.js'
public class | source

PickingInputSource

Extends:

action-input/src/input/InputSource~InputSource → PickingInputSource

PickingInputSource is used by App to track 3D objects that are:

  • pointed at by hands
  • looked at by gaze
  • hovered over by a mouse
  • touched on a touchscreen

    The input values are either null or an intersect object returned by Three.RayCaster: { distance, point, face, faceIndex, object }

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public set
public get

gaze: *

public get

left: *

public set
public get

mouse: *

public set
public get
public set
public get

right: *

public get

touch: *

public set

Method Summary

Public Methods
public
public

queryInputPath(partialPath: string): *

Public Constructors

public constructor() source

Public Members

public set gaze source

public get gaze: * source

public get left: * source

public set left source

public get mouse: * source

public set mouse source

public get name: string: string source

Return:

string

a human readable name

public set right source

public get right: * source

public get touch: * source

public set touch source

Public Methods

public clearIntersectObjects() source

public queryInputPath(partialPath: string): * source

Params:

NameTypeAttributeDescription
partialPath string

the relative semantic path for an input

Return:

*

the value of the the input, or null if the path does not exist