Skip to main content

Interface: BabylonProviderOptions

Defined in: babylon-interactions/src/provider.ts:46

Extended by

Properties

PropertyTypeDescriptionDefined in
camera?BabylonCameraLike | nullHead pose camera. Defaults to scene.activeCamera.babylon-interactions/src/provider.ts:56
desktopGripDistance?numberMetres along the pointer ray at which the desktop fallback places its synthetic grip pose. Default 1 metre, matching the three.js adapter, so grab, hinge, dial and slide follow the cursor on desktop. Set it near the distance of the things being manipulated; at 0 the grip sits on the camera and a mouse drag reports camera motion only.babylon-interactions/src/provider.ts:64
sceneBabylonSceneLikeThe scene. Supplies the pointer fallback, the camera and the engine.babylon-interactions/src/provider.ts:54
xr?BabylonXRExperienceLike | nullThe WebXRDefaultExperience (or anything with the same surface). Omit it, or pass null, for a desktop-only app: the provider then only ever reports the scene pointer.babylon-interactions/src/provider.ts:52