Interface IWebXRControllerMovementOptions
customRegistrationConfigurations?: WebXRControllerMovementRegistrationConfiguration[];
movementEnabled?: boolean;
movementOrientationFollowsController: boolean;
movementOrientationFollowsViewerPose: boolean;
movementSpeed?: number;
movementThreshold?: number;
orientationPreferredHandedness?: any;
rotationEnabled?: boolean;
rotationSpeed?: number;
rotationThreshold?: number;
xrInput: WebXRInput;
}
Properties
Optionalcustom Registration Configurations
Override default behaviour and provide your own movement controls
Optionalmovement Enabled
Is movement enabled
movement Orientation Follows Controller
If movement orientation should follow controller orientation instead of viewer pose. Make sure to set movementOrientationFollowsViewerPose to false, otherwise it will be ignored.
movement Orientation Follows Viewer Pose
Camera direction follows view pose and movement by default will move independently of the viewer's pose.
Optionalmovement Speed
Movement speed factor (default is 1.0)
Optionalmovement Threshold
Minimum threshold the controller's thumbstick/touchpad must pass before being recognized for movement (avoids jitter/unintentional movement)
Optionalorientation Preferred Handedness
If orientation follows the controller, this is the preferred handedness to use for forward movement. If not set (or handedness not found), the handedness will be selected by the controller triggering the movement. Note that this only works if movementOrientationFollowsController is true.
Optionalrotation Enabled
Is rotation enabled
Optionalrotation Speed
Movement speed factor (default is 1.0)
Optionalrotation Threshold
Minimum threshold the controller's thumstick/touchpad must pass before being recognized for rotation (avoids jitter/unintentional rotation)
xr Input
Babylon XR Input class for controller
The options container for the controller movement module