In my game I have been trying to make this line:
transform.LookAt(player.transform.position)
So it only looks at the x and z axis, I’ve tried some experiments and the only solution I found is to make an object that follows the player on the x and z axis and the object that has to look at the player on the y axis, is there a simpler way?