Interface PBAvatarMovement

Hierarchy

  • PBAvatarMovement

Properties

animation?: MovementAnimation

if set, the engine plays this animation instead of selecting one from velocity heuristics

groundDirection?: PBVector3
orientation: number

0-360, yaw only; this is the authoritative facing (other clients read it, and physics treats the avatar as upright). Lean is expressed separately via tilt_pitch/tilt_roll.

tiltPitch?: number

render-only forward/back lean in degrees, applied on top of orientation (rotation about the avatar's local X axis). Does not affect the physics capsule (stays upright) or the facing other clients read. Defaults to 0.

tiltRoll?: number

render-only sideways lean in degrees, applied on top of orientation (rotation about the avatar's local Z axis). Same constraints as tilt_pitch. Useful e.g. for glider banking. Defaults to 0.

velocity: undefined | PBVector3
walkSuccess?: boolean

set for one frame when a walk_target ends: true = reached target, false = failed; absent = in progress or no walk