So I have in my script that my AI max speed gets set to zero when they are a certain distance away from the player because if I don’t have it set like that the AI pushes the character regardless of rigidbody status which I don’t want to happen. When I set max speed to zero the AI no longer rotates, is there a way to make the AI still able to rotate even if the max speed is zero? I know I can use transform.lookat but that is an instant snap towards the player and I want it to be gradual like how it is when the enemy is normally tracking the player.
Side note, is there a way to also make the AI stop a certain distance away from the player with out setting speed to zero?