Lens Scripting API

    This singleton class manages mobile input data, including motion controller state, position, and rotation. It uses filters to smooth the input data and provides events for tracking quality changes.

    Index

    Constructors

    Properties

    filterPositionAndRotation: boolean = true

    Enables filtering of position and rotation

    getInstance: () => MobileInputData
    onControllerStateChange: event1<boolean, void>

    Public API to subscribe to controller state change events.

    The public api

    onTrackingQualityChange: PublicApi<TrackingQuality> = ...

    Public API to subscribe to tracking quality change events.

    The public api

    Accessors

    • get position(): vec3

      Returns vec3

      the current position.

    • get rotation(): quat

      Returns quat

      the current rotation.

    Methods

    • Returns boolean

      if the mobile input data provider is available, which means that it is receiving data.

    MMNEPVFCICPMFPCPTTAAATR