I have a timer that counts from 82 to -82 and back.
And I have a circle that should rotate (x rotation) from 82 to -82 and back.
How can I assign the timer number to the x rotation number of the circle?
My code so far is:
cont = bge.logic.getCurrentController() circle = cont.owner matrix_rotation = circle.worldOrientation euler_rotation = matrix_rotation.to_euler() degrees_rotation = [math.degrees(a) for a in euler_rotation] circleRotation = int(degrees_rotation)
Now I want to reverse the steps but don't know how to do it. The timer is driven by the system time and the circle should spin accordingly (it is kind of a skybox).