Rotating a cuboid about varying axes
Posted: Sat Mar 26, 2011 11:57 am
I am trying to make a small game wherein I have to rotate a certain cuboid about its edges over and over again , in response to user input.
Picture a box tumbling across a floor.
I Tried achieving the animation effect by using the RotationAnimator , but it seems it always rotates the object around its own center(set during modelling) I need to know if its possible to shift the point about which this rotation happens so that I change the same at will during run time.
Thanks !
Picture a box tumbling across a floor.
I Tried achieving the animation effect by using the RotationAnimator , but it seems it always rotates the object around its own center(set during modelling) I need to know if its possible to shift the point about which this rotation happens so that I change the same at will during run time.
Thanks !