Class MecanimBridge2D Extends VersionedMonoBehaviour
Helper for adding animation to agents.
This script will forward the movement velocity to the animator component using the following animator parameters:
InputMagnitude: Movement speed, normalized by the agent's natural speed. 1 if the agent is moving at its natural speed, and 0 if it is standing still.
X: Horizontal movement speed, normalized by the agent's natural speed.
Y: Vertical movement speed, normalized by the agent's natural speed.
Public Variables
The natural movement speed is the speed that the animations are designed for.
How the agent's rotation is handled.
How much to smooth the velocity of the agent.
Public Enums
Private/Protected Members
Handle serialization backwards compatibility.
Handle serialization backwards compatibility.
Cached reference to the movement script.
Cached Animator component.