Smooth 360 degree rotation every keypress - C#
Hello! I have a 2D circle in my game, and I am trying to figure out how I can make it rotate smoothly while I hold down the right arrow. When I press the right arrow, I want to rotate the circle 360 degrees (smooth rotation, not snappy). But also, if i hold down the right arrow, I want it to continuously rotate 360 degrees, with a 0.5 second delay between each rotation.
I have spent way too long trying to figure this out, and would love it if someone can help me out. I know I need to use quaternions and corotuines, but I don't know how.
If the question doesn't make sense, let me know and I can explain. Thank you!
Your answer
Follow this Question
Related Questions
How to smoothly rotate gameobject 20 degrees on key press? 0 Answers
Rotate on Transform.localeulerAngels smoothly 0 Answers
Rotation working within an if statement but not within a method??? 0 Answers
How can I make my game object move like this? 0 Answers
Rotating an object smoothly, towards user inputted Vector3 1 Answer