Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

There is a way to move navmeshagent without rotating?

Discussion in 'AI & Navigation Previews' started by dienat, Nov 4, 2018.

  1. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    I dont use root motion and i see the agent just moves forward using the given rotation until reach destination but i dont want that, i want an enemy is moving and not looking for the next cell its moving but always looking at the player, but if they look at the player they just go straight to the player and not follow the agent.destination
     
  2. Od1um

    Od1um

    Joined:
    Nov 14, 2012
    Posts:
    5
    agent. updateRotation=false; that's it
     
  3. adhochero

    adhochero

    Joined:
    Feb 2, 2017
    Posts:
    42
    omg thanks. I didn't know it'd as easy as that. you're my HERO!