There is a small boat and four buttons: left, right, up, down. How to press the button to turn the ship once in the appropriate direction?
tried through object:rotate(deltaAngle) , it turns out that each time you press the button, the ship turns again, which I do not need
It is possible to set a fixed turn like "I will press the button up, and then again, but you will turn to the north position for the first time, and you will ignore the second time, you will already turn north"?