Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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:
    43
    omg thanks. I didn't know it'd as easy as that. you're my HERO!