Skip to main content

Interface: LocomotionState

Defined in: xrblocks-uiextensions/src/desktop-locomotion.ts:62

Mutable locomotion state. x/z are ground position; y is eye height.

Properties

PropertyTypeDescriptionDefined in
groundedbooleanTrue when standing on the ground (jump allowed).xrblocks-uiextensions/src/desktop-locomotion.ts:70
verticalVelocitynumberVertical velocity, m/s. Zero while grounded.xrblocks-uiextensions/src/desktop-locomotion.ts:68
xnumber-xrblocks-uiextensions/src/desktop-locomotion.ts:63
ynumberCurrent eye height (includes any jump arc).xrblocks-uiextensions/src/desktop-locomotion.ts:66
znumber-xrblocks-uiextensions/src/desktop-locomotion.ts:64