Talos docs

LocomotionProps

Since 0.6
Plain text

Signature

export interface LocomotionProps {
  /** The blend parameter to drive. Default `"speed"`. */
  parameter?: string
  /** The animation event the animator raises for a footfall. Default `"footstep"`. */
  footstepEvent?: string
  /** An audio asset to play on each footstep. Omitted plays nothing. */
  cue?: string
  /** The bus the cue plays on. Default `"sfx"`. */
  bus?: string
  /**
   * Multiplies the speed written to the parameter, for a tree authored in something other
   * than m/s — a 0..1 gait, say. Default 1.
   */
  scale?: number
}

Import: import type { LocomotionProps } from "@argus/gameplay"

Members

MemberSignatureDescription
parameterparameter?: stringThe blend parameter to drive. Default "speed".
footstepEventfootstepEvent?: stringThe animation event the animator raises for a footfall. Default "footstep".
cuecue?: stringAn audio asset to play on each footstep. Omitted plays nothing.
busbus?: stringThe bus the cue plays on. Default "sfx".
scalescale?: numberMultiplies the speed written to the parameter, for a tree authored in something other than m/s — a 0..1 gait, say. Default 1.