Search Unity

  1. Unity 2020 LTS & Unity 2021.1 have been released.
    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:
    408
    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
     
    TacticalBlank likes this.
  3. adhochero

    adhochero

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