This is a teleportation 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.
Is movement backwards enabled
Distance to travel when moving backwards
Should auto-attach be disabled?
Is this feature disposed?
The distance from the user to the inspection point in the direction of the controller A higher number will allow the user to move further defaults to 5 (meters, in xr units)
Should the module support parabolic ray on top of direct ray If enabled, the user will be able to point "at the sky" and move according to predefined radius distance Very helpful when moving between floors / different heights
How much rotation should be applied when rotating right and left
Is rotation enabled when moving forward? Disabling this feature will prevent the user from deciding the direction when teleporting
The name of the native xr feature name (like anchor, hit-test, or hand-tracking)
The module's name
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
Get the snapPointsOnly flag
Sets the snapPointsOnly flag
should teleportation be exclusively to snap points
Add a new mesh to the floor meshes array
the mesh to use as floor mesh
Add a new snap-to point to fix teleportation to this position
The new Snap-To point
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
Remove a mesh from the floor meshes array
the mesh to remove
Remove a mesh from the floor meshes array using its name
the mesh name to remove
This function will iterate through the array, searching for this point or equal to it. It will then remove it from the snap-to array
the point (or a clone of it) to be removed from the array
was the point found and removed or not
This function sets a selection feature that will be disabled when the forward ray is shown and will be reattached when hidden. This is used to remove the selection rays when moving.
Generated using TypeDoc