Interface ICharacterAnimationController
What a character's movement, abilities and death tell its animation. The character's own peers call it (its movement and abilities run there); a client watching someone else hears nothing from that character and reads its body off what it can see, plus the cast and death broadcasts every observer receives. Nothing here is synced.
public interface ICharacterAnimationController : ICharacterBehaviour
- Inherited Members
Methods
ResetDeath()
Resets the death animation state and restores default locomotion params. Called on resurrection or when death was mispredicted (reconcile correction). Resets Death trigger, clears Speed to 0, restores Grounded/Crouching defaults, and clears any lingering Attack/Cast/Roll/Jump/Block state.
void ResetDeath()
SetBlocking(bool)
Sets the blocking state.
void SetBlocking(bool blocking)
Parameters
blockingbool
SetClimbing(bool, float)
Sets whether the character is climbing a ladder, rope ladder or rope, and how fast: rate is
the climb's speed as a share of the stock climbing speed, positive up and negative down (zero holding still).
void SetClimbing(bool climbing, float rate)
Parameters
SetCrouching(bool)
Sets whether the character is crouching.
void SetCrouching(bool crouching)
Parameters
crouchingbool
SetGrounded(bool)
Sets whether the character is on the ground.
void SetGrounded(bool grounded)
Parameters
groundedbool
SetRootMotion(bool)
Enables or disables root motion on the Animator.
void SetRootMotion(bool enabled)
Parameters
enabledbool
SetSpeed(float)
The movement's speed band (0 idle, 0.3 crouch-walk, 0.5 walk, 1 run, 1.5 sprint). An implementation may measure the body's real speed instead, as the game's does.
void SetSpeed(float speed)
Parameters
speedfloat
SetSwimming(bool, float)
Sets whether the character is swimming, and how it lies in the water: pitch degrees, positive
nose down (diving), negative nose up.
void SetSwimming(bool swimming, float pitch)
Parameters
TriggerAttack()
Triggers an attack animation.
void TriggerAttack()
TriggerCast()
Triggers a spell cast animation.
void TriggerCast()
TriggerDeath()
Triggers the death animation and suppresses all other animation state.
void TriggerDeath()
TriggerJump()
Triggers a jump animation.
void TriggerJump()
TriggerRoll()
Triggers a roll/dodge animation.
void TriggerRoll()