Question by
ouchyzapgun · Feb 28, 2017 at 02:17 AM ·
rotationnavigation
Why Is My Enemy Rotating On X?
So my game has enemy character prefabs with navigation mesh agents. When they are set to move, I use agent.SetDestination(target.position);. The enemies rotate on both the X and Y axes. It looks very strange. When I am high over the enemy, it appears to lay on the ground. When I'm closer to it, it looks normal. I want it to rotate on only Y. I have been struggling with this the whole time, and I can't find any fixes with Google. I have tried the Rigid Body constraints to no avail. What am I missing?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612112125im_/https://answers.unity.com/themes/thub/images/avi.jpg)