Navigation agent to rotate instantly

Hello,

I am trying to figure out how to increase the speed of NavMeshAgent rotation to being instant, so that the Agent would ALWAYS face the direction that he is moving.

For example if I click just 1unit away towards the objects back, then it would turn 180degrees instantly the moment he start moving. Changing the default values did not help as it would never rotate fast enough even with values of 999999 on angular speed and acceleration.

Thanks for help :slight_smile:

@Quis

I had the same problem with a very fast agent i was using. In order to make it work exactly as you want you should set the Angular Speed to 900 - 999 and make sure that the Acceleration is a little bit higher than the Speed (eg: Speed = 14, Acceleration = 17)

g.transform.eulerAngles = new Vector3(0,Quaternion.LookRotation(nav.velocity-Vector3.zero).eulerAngles.y,0);

esto me ayudo a mi nav es el nav mesh agent.

this helped me my nav is the nav mesh agent.

Set the Angular Speed and the Acceleration to infinity.