Hey all!
I asked a similar question a couple of days ago, but I messed up the question so bad that even I didn't know how to answer it ^^
Anyway..
given the X,Y position of a sphere, how would you compute the rotations of this object if you were to move it around the x-y axis?
I use this expression for figuring out how much to rotate it if I move it in just the X or Y, but both at the same time messes up the rotation.
RotateX = sin(SphereX/(2*pi*radius))*360
RotateY = sin(SphereY/(2*pi*radius))*360
Anyone?
I asked a similar question a couple of days ago, but I messed up the question so bad that even I didn't know how to answer it ^^
Anyway..
given the X,Y position of a sphere, how would you compute the rotations of this object if you were to move it around the x-y axis?
I use this expression for figuring out how much to rotate it if I move it in just the X or Y, but both at the same time messes up the rotation.
RotateX = sin(SphereX/(2*pi*radius))*360
RotateY = sin(SphereY/(2*pi*radius))*360
Anyone?