OptionalcharacterCharacter height in millimetres for headroom checks. Defaults to 1800.
OptionalcharacterCharacter radius in millimetres for lateral clearance checks. Defaults to 250.
OptionalclimbHighest step (mm) climbed automatically; also the ground-snap reach. Defaults to 250.
OptionalcollisionEnable walk physics (wall collision, ground clamping, gravity, PageUp/PageDown storey jumps) in the
walk and game modes. Requires the server-generated walkable-surfaces artifact; without it navigation
silently behaves as before. Defaults to true when the artifact is present.
OptionalextendsPredefined mode to use as the base configuration. Defaults to default.
OptionaleyeEye height above the floor in millimetres. Defaults to 1650.
Optionalforwardhorizontal keeps forward/back movement level with the world; camera follows the camera direction.
OptionalgravityFall when no floor is in reach (through slab holes, off edges). Defaults to true.
OptionaljumpSpace jump height as a multiple of climbHeightMm. Defaults to 2.5 (625 mm). Requires gravity.
OptionalkeyMode-specific shortcut overrides. Empty arrays disable the default bindings for that action.
OptionalkeyboardEnable keyboard movement actions. Automatically enabled when navigation key bindings are supplied.
OptionallookEnable drag look-around when a binding maps to lookAround.
OptionalnavigationMode-level multiplier for free keyboard navigation speed. The predefined drone mode defaults to 3.
OptionalpointerRequest pointer lock when the mode starts and use mouse movement for look-around.
OptionalturnUse left/right keyboard bindings to yaw instead of strafe. Used by the predefined walk mode.
OptionaltypeAlias for extends, kept for callers that prefer describing the movement type.
OptionalwalkKeep the ground clamp and gravity but skip wall collision. Defaults to false.
Defines one custom navigation mode. The four predefined modes are available as presets through
extends:default: regular orbit/pan/zoom mouse navigation, no keyboard movement.walk: keyboard forward/back/up/down movement, left/right keyboard turning and Alt+left-button look-around. With the walkable-surfaces artifact present, walk physics adds wall collision, gravity with stair/step climbing and PageUp/PageDown storey jumps (seecollisionand the character parameters).game: pointer-lock look-around with horizontal WASD/arrow movement.drone: pointer-lock look-around with camera-direction WASD/arrow movement.Custom modes can map one or more keyboard or mouse combinations to any action supported by
NavigationModeSettingswithkeyBindings. AKeyBindinguses DOMKeyboardEvent.codevalues such asKeyW,ArrowUporPageDown, and DOM mouse button numbers:0main/left button,1middle button and2secondary/right button. Navigation movement bindings can setspeedto scale that binding's movement or turn speed. For example,{ keyCode: "ArrowUp", speed: 1 }and{ keyCode: "ArrowUp", shiftKey: true, speed: 5 }keep the current fast-shift behavior configurable per binding.Example