So i have an object in the game that i want to have follow the player. It does follow the player BUT its Y Axis is too high. How can i lock the objects Y Axis along with this code:
Chances are, the target you’re actually looking at is that high. Try storing the current y-axis before calling transform.LookAt(target.transform);
For example: