rwth-acis / Virtual-Agents-Prototype

A Unity package for creating virtual agents
MIT License
9 stars 5 forks source link

New agent movement controller #37

Open SebastianMeinberger opened 2 years ago

SebastianMeinberger commented 2 years ago

The ThirdPersonCharacterController from the Unity standart assets is no longer used. Instead, all movment is handeld directly by the Unity native NavmeshAgent. The only thing that has to be handeld seperatly is the updating of animations, which is done by the new AgentAnimationUpdater.

The AgentAnimationUpdater can handle every animator and animation, as long as idle,walking and running is done via one blend tree that uses a parameter called "Speed". This includes for example the animator from the Starter Assets Controller or from the deprecated Standart Assets.

Other animation parameters than speed are currently not updated, therfore more complex blend trees will work, but can only utelise states that can be reached from changing only the speed parameter.

The standard assets are now completly removed, but if whished, they can be installed by indivudal users through the asset store in order to use their animations.

This PR depents on PR #34

Closes #36