Manages interaction capabilities of a VR controller or a similar input device.

The Interactor class enables an entity to grip or interact with objects that implement the Interactable interface.

Hierarchy

  • Component
    • Interactor

Properties

inputObject: Object3D

Properties

meshRoot: null | Object3D = null
trackedSpace: Object3D = ...
visualStateOnGrab: InteractorVisualState = InteractorVisualState.Visible
TypeName: string = 'interactor'

Accessors

Methods

  • Check for nearby interactable, and notifies one if this interactor interacts with it.

    Returns void

  • Set the collision component needed to perform grab interaction

    Returns void

    This instance, for chaining

  • Force this interactor to start interacting with the given interactable.

    Parameters

    • interactable: Grabbable

      The interactable to process.

    • handleId: number

    Returns void