Target provider for MouseInteractor. Can target all Interactables regardless of their targetingMode.

Hierarchy (view full)

Constructors

Properties

_currentInteractableHitInfo: InteractableHitInfo = null
camera: default = ...
interactionManager: InteractionManager = ...
targetingMode: TargetingMode = ...

Accessors

  • get direction(): vec3
  • Returns the direction the mouse ray is pointing toward.

    Returns vec3

  • get drawDebug(): boolean
  • Returns boolean

    if the mouse is should draw a debug gizmo of collider/raycasts in the scene.

  • set drawDebug(debug): void
  • Set if the mouse is should draw a debug gizmo of collider/raycasts in the scene.

    Parameters

    • debug: boolean

    Returns void

  • get endPoint(): vec3
  • Returns vec3

    end position in world space

  • get startPoint(): vec3
  • Returns vec3

    origin position in world space

Methods

  • Set the _currentInteractableHitInfo to null, used when an Interactable is deleted from Lens Studio, to keep state in sync

    Returns void

  • Destroys the provider

    Returns void

  • Returns boolean

    whether the provider has found a target or not

  • Can be used to reset inner states Should be called when the hand is not tracked or targeting is blocked

    Returns void

  • Recomputes the target

    Returns void