- Home /
LookAt GameObject but never rotate in Y Axis
Hi i'm trying to make the enemy look at the player and its working great but when the player jump the enemy rotates in Y axis wich is bad i don't know how to make him rotats only in X and Z Axis, i need to know that , thnx :-)
Comment
The tipping back you want to prevent, to look "up", is a rotation on the X axis. A usual enemy rotates only on the Y-axis, never on X or Z (Z-rotation is leaning sideways.)
Your answer
![](https://koobas.hobune.stream/wayback/20220612201056im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Make an FPS gun point at the mouse position. 2 Answers
LookAt but using physics AddRelativeTorque 1 Answer
Lookat mouse, without raycasting? 1 Answer
How to send vars! 1 Answer
Touch ID ????? 1 Answer