Random rotation between two values

Guys, help me with something, I want this speedometer to keep choosing a random position every 5 seconds between 0 and 2040 and I want it to rotate with a fade and not teleporting, how do I do that?

To control and modify the rotation of a physical 3D object, you can use a timeline and a technique called interpolation. The timeline allows you to set up a variable and graph its movement over time, making it a great tool for controlling an actor’s rotation. By generating a random number and interpolating between the current position and the new position, you can achieve a smooth transition between the two positions. The speed of the position shift is determined by the alpha input in the interpolation, which can be controlled using the variable set up through the timeline.

Hey there @Danieldealmeida! Clockwork has a great simple rotation interpolation script in this thread:

1 Like