Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Enemy is not rotating towards target destination when animated?

Discussion in 'Animation' started by rowdychannel01, Nov 23, 2020.

  1. rowdychannel01

    rowdychannel01

    Joined:
    Nov 9, 2019
    Posts:
    1
    Not entirely sure if this is the right place to place my issue.

    Hi all, I'm following the 'Complete C# Unity Game Developer 3D' on Udemy, I've asked for help on their site and haven't gotten an answer in 2 days so I'm trying here. Using the Animator on my NavMeshAgent, it stops the agent from rotating with animations and it will no longer rotate to face the destination target. I was hoping that Rick, the teacher, would mention something to solve this. We did learn to solve a rotation issue during the attack state, but no luck sadly for my case.

    However, after a lot of tinkering, trial, and error, I turned off the Animator component in the Inspector and found that rotation works again.

    I am using Unity 2020.1.4f1 Personal on a PC. I heard Root Motion is a common cause for this issue but its disabled.