Unity: 6.1
AC Version: 1.84.3
I've come across a little issue when attempting to add tank controls into my game (player can switch between Tank and Relative to Camera).
My character uses a NavMeshAgent and the NavMesh Integration script, and after troubleshooting I've noticed that the NavMesh Integration script prevents the character from walking backwards. The animation plays, but the character still walks forwards.
It might be a problem in that is auto sets the players MotionControl to turning only.
A potential (partial) fix is by making a change to the NavMeshAgent Integration script and forcing it to using MotionControl.Automatic (in specific circumstances) - it lets the player move backwards, but messes up the speed at which the character moves. The player moves at a normal pace backwards, but forward is at least doubled.
Just thought it might be something someone else has come across, or has a more elegant solution that what I will probably end up having
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Switching it to Automatic will cause AC to affect the character's motion directly. With the NavMesh Agent working as well, the doubled speed is due to both assets moving the character at the same time.
You'd need to disable the NavMeshAgent / integration to remove its influence over this motion. As you're moving directly during this time (i.e. not pathfinding) you should be safe to temporarily disable the agent.