I have been reading many posts, tutorials, documentation, but I really need a little help.
I don’t know if maybe is the logic or I’m not using the right sentences for my logic.
What I’m trying to do is to rotate the empty object until it reaches 60 degrees and when it reaches the angle, stop the rotation, but I have continous rotation or just one rotation.
This is the logic I’m using.
if centro_mouse.positive:
for grados in range (60):
rotZ= 0.02*(60-grados)
centro_motion.dRot=[0, 0, rotZ]
Anyone please can help me?
Just an orientation, tell me if I’m doing it right or doing wrong.
Anything you can tell me I’m sure it will be of great help.
sorry to bump this …but isnt there a way to just set the rotation (in degrees) of an object in python. Its what I was looking for…didnt want to start a new thread.
Say I wanted a cube just facing y. and when I keypress its facing 45 degrees of y. Without actually rotating