Hello.
I would like to rotate an object 15 degrees left and right on the x-axis.
When I move the mouse left and right, the object is supposed to rotate in the X axis.
After the Click detection, I created two States like the one in the picture, but it doesn't work. In particular, it looks like the picture and the loop exceeds 1000 times.
How can I solve these problems and rotate by moving the mouse left and right by 15 degrees to the left and right?
Please give me some advice.