Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.