rotation along the camera axis
Helper last edited by
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/07/2007 at 03:19, xxxxxxxx wrote:
Cinema 4D Version: R10.1
Platform: Windows ;
Language(s) : C++ ;
We are working on a plug-in in order to rotate objects on the scene along the camera axis rather than the normal rotation axis which are the object's ones.
We've already tried the SetAxis() Quaternion's method and multiply the generated matrix by the initial global matrix of the object and then set the result as the new object's global matrix.
It works as long as the angle between the object and the world axes related to the rotation remains null.
e.g : for a rotation along the Z camera axis, we cannot set the H object angle to other value than 0.