Question by
Ahsenhein · Mar 17, 2017 at 06:51 PM ·
collisionrotatenavmeshagentnavigation
How to prevent NavMeshAgent from rotate?
I'm using NavMeshAgent for the AI and I'm using my own rotation using quaternion and it"s working fine. But when I stress test it using the player to collide and push the enemy over and over the enemy gain some weird rotation and then never stops.
I'm already using NavMeshAgent.UpdateRotation = false; and NavMeshAgent.AngularSpeed = 0; but this only work when I don't collide repeatably with something.
Thanks.
Comment
Best Answer
Answer by Ahsenhein · Mar 17, 2017 at 08:15 PM
Just fixed it by using the rigidbody isKinematic. Why didn't I think about that before =/.
source: https://docs.unity3d.com/Manual/nav-MixingComponents.html