How to rotate wheel

Hello guys, I want to create a wheel that rotates couple of seconds and then gradually stops. I made it spin but is endless :smiley: . Also if you can help to make some collision with flapper that would be great. This is the wheel.

I just need it to spin when I click and stop gradually after couple of seconds.

You can use the Physics Engine 2.0 behaviour. That behaviour will provide you with actions that will help your make that rotating wheel.

That sounds waaaay overkill. Physics are heavy, and you do not need to include those in your game.

Just rotate by an angle stored in a variable, and once you clicked start reducing that variable every frame (use max(yourvariable, 0) to prevent it going below 0 and start rotating backwards).

1 Like