Interface AvatarMovementSettings

Hierarchy

  • AvatarMovementSettings

Properties

allowWeightedMovement?: boolean

whether to allow player to move at a slower speed (e.g. with a walk-key or when using a gamepad/joystick). defaults to true

controlMode?: AvatarControlType
friction?: number

how fast the player gets up to speed or comes to rest. higher = more responsive

gravity?: number

how fast the player accelerates vertically when not on a solid surface, in m/s. should normally be negative

jumpHeight?: number

how high the player can jump, in meters. should normally be positive. gravity must have the same sign for jumping to be possible

maxFallSpeed?: number

max fall speed in m/s. should normally be negative

runSpeed?: number

if not explicitly set, the following properties default to user's preference settings

turnSpeed?: number

speed the player turns in tank mode, in radians/s

walkSpeed?: number

speed the player walks at, in m/s