MovementHandler.GetAnimationDirection

Method in MovementHandler

Declaration

public abstract Vector2 GetAnimationDirection(MovementController controller, MovementState state)

Description

Determines the character's direction for animation purposes. This is usually the character's forward direction normalized in local space.

Parameters

controllerThe movement controller determining the animation direction.
stateThe current movement state.

Returns

Vector2The new animation direction.