Interface IWebXRInputOptions
interface IWebXRInputOptions {
controllerOptions?: IWebXRControllerOptions;
customControllersRepositoryURL?: string;
disableControllerAnimation?: boolean;
disableOnlineControllerRepository?: boolean;
doNotLoadControllerMeshes?: boolean;
forceInputProfile?: string;
}
controllerOptions?: IWebXRControllerOptions;
customControllersRepositoryURL?: string;
disableControllerAnimation?: boolean;
disableOnlineControllerRepository?: boolean;
doNotLoadControllerMeshes?: boolean;
forceInputProfile?: string;
}
Properties
Optionalcontroller Options
Optional options to pass to the controller. Will be overridden by the Input options where applicable
Optionalcustom Controllers Repository URL
customControllersRepositoryURL?: string
A custom URL for the controllers repository
Optionaldisable Controller Animation
disableControllerAnimation?: boolean
Should the controller model's components not move according to the user input
Optionaldisable Online Controller Repository
disableOnlineControllerRepository?: boolean
Do not send a request to the controller repository to load the profile.
Instead, use the controllers available in babylon itself.
Optionaldo Not Load Controller Meshes
doNotLoadControllerMeshes?: boolean
If set to true no model will be automatically loaded
Optionalforce Input Profile
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/
The schema for initialization options of the XR Input class