Function createMotionController

  • Creates and initializes a motion controller for a WebXR input source

    Parameters

    • xrInputSource: XRInputSource

      The WebXR input source to create a controller for

    • basePath: string

      Base path for loading controller assets

    • profilePriorities: string[]

      Array of profile names in order of preference

    Returns Promise<ISceneGraphEntity>

    Promise that resolves to the root entity of the controller model