This is a movement feature to be used with WebXR-enabled motion controllers. When enabled and attached, the feature will allow a user to move around and rotate in the scene using the input of the attached controllers.
Auto AttachSearch playground for disableAutoAttach
Should auto-attach be disabled?
DisposedSearch playground for isDisposed
Is this feature disposed?
Feature Attach ObservableSearch playground for onFeatureAttachObservable
Observers registered here will be executed when the feature is attached
Feature Detach ObservableSearch playground for onFeatureDetachObservable
Observers registered here will be executed when the feature is detached
Native Feature NameSearch playground for xrNativeFeatureName
The name of the native xr feature name (like anchor, hit-test, or hand-tracking)
Static Readonly NameSearch playground for Name
The module's name
Static Readonly REGISTRATIONSSearch playground for REGISTRATIONS
Standard controller configurations.
[key: string]: WebXRControllerMovementRegistrationConfiguration
Static Readonly VersionSearch playground for Version
The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the webxr specs version
Is this feature attached
Current movement direction. Will be null before XR Frames have been processed.
Is movement enabled
Sets whether movement is enabled or not
is movement enabled
If movement follows viewer pose
Sets whether movement follows viewer pose
is movement should follow viewer pose
Gets movement speed
Sets movement speed
Gets minimum threshold the controller's thumbstick/touchpad must pass before being recognized for movement (avoids jitter/unintentional movement)
Sets minimum threshold the controller's thumbstick/touchpad must pass before being recognized for movement (avoids jitter/unintentional movement)
Is rotation enabled
Sets whether rotation is enabled or not
is rotation enabled
Gets rotation speed factor
Sets rotation speed factor (1.0 is default)
new rotation speed factor
Gets minimum threshold the controller's thumbstick/touchpad must pass before being recognized for rotation (avoids jitter/unintentional rotation)
Sets minimum threshold the controller's thumbstick/touchpad must pass before being recognized for rotation (avoids jitter/unintentional rotation)
attach this feature
true if successful, false is failed or already attached
detach this feature.
true if successful, false if failed or already detached
Dispose this feature and all of the resources attached
CompatibleSearch playground for isCompatible
This function will be executed during before enabling the feature and can be used to not-allow enabling it. Note that at this point the session has NOT started, so this is purely checking if the browser supports it
whether or not the feature is compatible in this environment