I'm trying to get a rotating cube to respond to the mouse location.
I want it to behave like the example here:
http://www.tagworld.com/-/widgets/WidgetDe...dget_type_id=36
I can easily set the rotation for x or y based on the mouse position relative to the center of the cube.
The problem is the way the rotations interact is causing an undesirable tumble effect in certain arrangements.
I
really want to change the axis of rotation to always be parallel to the
monitor or perfectly vertical, no matter how the cube is rotated.
I know I'm missing something obvious.
Should I be rotating the object, the world, the camera, or what?
Can I set the axis of rotation? If so, should I (must I?) use the rotation interpolator?
I'm sure there is some trick to this.
Any insights appreciated.
Cheers,
Bruce