Function teleportation
-
Parameters
- options: XrTeleportationOptions = {}
Floor selection + appearance (see XrTeleportationOptions).
Returns XrFeatureSpec
- options: XrTeleportationOptions = {}
Floor selection + appearance (see XrTeleportationOptions).
Controller teleportation as an opt-in XrFeatureSpec (Babylon.js
TELEPORTATION). Pass it toenterXr({ features: [teleportation({ floorMeshes })] }): push a thumbstick forward to aim a parabolic arc + floor reticle, lean sideways to pick a heading, release to teleport there facing that way; push sideways (centred) to snap-turn. The session drives + disposes it and adopts the offset reference space each frame — no manual wiring.Requires input tracking (do not pass
input: falseto enterXr); it needs no native WebXR session feature.