Function loadMotionController
-
loadMotionController(
engine: EngineContext,
source: XRInputSource,
handedness: XrHandedness,
options?: XrMotionControllerProfileOptions,
): Promise<MotionController | null>Parameters
- engine: EngineContext
- source: XRInputSource
- handedness: XrHandedness
- options: XrMotionControllerProfileOptions = {}
Returns Promise<MotionController | null>
Resolve, fetch, and load the real motion-controller model for an input source. Returns
null(never throws) if the source advertises no known profile or any network/parse step fails, so callers can keep a placeholder visual. The returned container is not yet added to a scene — the caller ownsaddToScene.