- Home /
Lock Rotation of Object between 2 points, which is looking at the direction the mouse is pointing
I've been struggling with this for a while and im not able to find a solution. As stated in the title i want to lock the rotation of the z-axis in a 2 game where the player object looks where the mouse is placed and it shouldn't rotate more than a specific value.
Appreciate any help.
Comment