Cube rotatation

Hi. I’m trying to make cube rotate 90 every time I press button. It does rotate, but not 90, a lot more. I can’t understand why.

First remove this lerp from InputActionRotateX

If you want to animate rotation, you have to save desired rotation in a variable, and use lert of “Current” and “Desired” as variables, and then lerp in the Tick method. If you want to rotate it whout animation, remove lerp method.

1 Like

Thank You. It works.

1 Like