API

Interface IWebXRInputOptions

The schema for initialization options of the XR Input class

interface IWebXRInputOptions {
    controllerOptions?: IWebXRControllerOptions;
    customControllersRepositoryURL?: string;
    disableControllerAnimation?: boolean;
    disableOnlineControllerRepository?: boolean;
    doNotLoadControllerMeshes?: boolean;
    forceInputProfile?: string;
}
Index
controllerOptions?: IWebXRControllerOptions

Optional options to pass to the controller. Will be overridden by the Input options where applicable

customControllersRepositoryURL?: string

A custom URL for the controllers repository

disableControllerAnimation?: boolean

Should the controller model's components not move according to the user input

disableOnlineControllerRepository?: boolean

Do not send a request to the controller repository to load the profile.

Instead, use the controllers available in babylon itself.

doNotLoadControllerMeshes?: boolean

If set to true no model will be automatically loaded

forceInputProfile?: string

If set, this profile will be used for all controllers loaded (for example "microsoft-mixed-reality") If not found, the xr input profile data will be used. Profiles are defined here - https://github.com/immersive-web/webxr-input-profiles/