Previously, all tasks that moved the agent handeld the animations themself. That was very cumbersome and broke completly when a different animation controller or animations were used.
Now, all animations are handled by the AnimationUpdater. The AnimationUpdater observes angular and transitional speed of the agent and updates the animator parameters accordingly. This has the advantage that the animations are always correct no matter if the agent is moved by an own script or the navmeshAgent.
The name of the animation parameters can be adjusted in the inspector. One can alsoe adjust the top movment and rotation speed the provided animations can handle. This allows to synchronise the aniamtions with the ground.
The AnimationUpdater also disabels alle movment exerted by animations (animations can move charcters themself), to prevent them from messing with navmeshAgent controlls.
These changes allow to easily switch the used animator and animations. Only some parameters in the AnimationUpdater have to be adjusted.
Previously, all tasks that moved the agent handeld the animations themself. That was very cumbersome and broke completly when a different animation controller or animations were used.
Now, all animations are handled by the AnimationUpdater. The AnimationUpdater observes angular and transitional speed of the agent and updates the animator parameters accordingly. This has the advantage that the animations are always correct no matter if the agent is moved by an own script or the navmeshAgent.
The name of the animation parameters can be adjusted in the inspector. One can alsoe adjust the top movment and rotation speed the provided animations can handle. This allows to synchronise the aniamtions with the ground.
The AnimationUpdater also disabels alle movment exerted by animations (animations can move charcters themself), to prevent them from messing with navmeshAgent controlls.
These changes allow to easily switch the used animator and animations. Only some parameters in the AnimationUpdater have to be adjusted.
Closes #38