Hello, I have an object and I want to rotate it on one axis when a key is pressed.
I know how to do this but I want to implement a way to control the speed of the rotation by key press.
Concept:
Variable - RotAmount
So this will be a float that will start at 0.
When I press T, it will increase the RotAmount to 100.
And G will decrease it all the way to -100.
What I have is a fairground ride that you can control. So for example 1-100 would be rotating one way and -1 to -100 would be the other. And 0 would be not moving. This number hopefully would then change the speed of the rotation. If anyone knows how I could implement this then that would be great, thanks!