Lens Scripting API

    Hand based direct target provider. Uses a collider positioned at the center position of the index and thumb

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    _currentInteractableHitInfo: InteractableHitInfo = null
    _currentInteractionPlanes: InteractionPlane[] = []
    camera: default = ...
    interactionManager: InteractionManager = ...
    interactor: default
    ownerSceneObject: SceneObject
    targetingMode: TargetingMode = TargetingMode.Direct

    Accessors

    • get colliderPosition(): vec3

      Returns vec3

      the direct collider position for direct manipulation

    • get currentInteractionPlanes(): InteractionPlane[]

      Returns an array of InteractionPlanes with interaction zones overlapping with the collider.

      Returns InteractionPlane[]

    • get drawDebug(): boolean

      Returns boolean

    • set drawDebug(debug: boolean): void

      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

    MMNEPVFCICPMFPCPTTAAATR