here I'm stuck with quaternion usage (I know I'm not alone and that's reassuring... a bit:)).
I have a cube. I want to make this cube rotates from 90 degrees on X axis or Y axis in worldspace.
Here is the code I use in the cube script :
As I understand it, using
asked Jun 23 '12 at 10:00 AM
You are over complicating it :)
The transform.right etc is messing it up, because it is changing too and you are accounting for the current rotation by using it in your calculation.