Detecting Rotation
I'm trying to set a rule up so that if a box rotates more than 20 degrees left or right, then something happens, but I can't seem to get the rotation angles correct. As far as I know, the 0 and 360 start are measured from the top? and if you rotate the box to the right it goes from 360 to a negative value, and if you rotate it left it goes from 0 and counts up?
So far I've got:
if self.rotation is < 350
change attribute...
if self.rotation is > 20
change attribute...
This doesnt seem to be working quite right for me.
Cheers!
So far I've got:
if self.rotation is < 350
change attribute...
if self.rotation is > 20
change attribute...
This doesnt seem to be working quite right for me.
Cheers!
Comments
It makes what your trying to do much easier