Skip to main content

WalkerState

A struct in Root.Township, Alta.Pathfinding.

Snapshot of a walking creature's movement, sent by Walker.Updated each update and used by WalkerAnimator to set animator parameters.

Fields​

MemberWhat it is
float ForwardSpeedHorizontal speed along the creature's forward direction.
bool IsFinalStretchTrue when the walker is on the last stretch to its target and not overshooting; drives the stopping animation.
bool IsGroundedWhether the walker is on the ground.
bool IsPivotingWhether the walker is turning on the spot.
float TurnSpeedHow far the walker rotated this update.
Vector3 VelocityFull velocity, horizontal plus vertical.

Used in​

Members of other types that take, return or hold a WalkerState: