Lens Scripting API

    Uses a collider positioned to detect a target

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

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

    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 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

    • Clears an InteractionPlane from the cache (in the event of the InteractionPlane being de-registered).

      Parameters

      Returns void

    • Destroys the provider

      Returns void

    • Returns vec3

      the collider next position

    • Returns boolean

      whether the provider has found a target or not

    • Returns boolean

      true if target provider is available, false otherwise

    • Parameters

      Returns void

    • Recomputes the target

      Returns void

    • Parameters

      Returns void

    MMNEPVFCICPMFPCPTTAAATR