Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Make NavMeshAgent Rotate ONLY when Agent has to turn

Discussion in 'Navigation' started by Cnc96, May 29, 2015.

  1. Cnc96

    Cnc96

    Joined:
    Dec 17, 2013
    Posts:
    57
    Hi all,
    I'm wandering if there is an easy way to make a NavMeshAgent stop moving and just rotate if the agent needs to turn to follow its path, as I'm looking for a way to try and get an arcade-like tank motion like that seen in the image below:


    I was thinking that I could perhaps use a combination of the steeringTarget, updatePosition and updateRotation to achieve this?
    Would that be the right way to approach the problem, or would I have to do something else?
     
  2. Jakob_Unity

    Jakob_Unity

    Unity Technologies

    Joined:
    Dec 25, 2011
    Posts:
    269