On 15/06/2013 at 15:14, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R13-R14
Platform: Windows ;
Language(s) : C++ ;
---------
I have a NULL object sitting on another objects, which rotates in 3D space.
I read the global rotation from the NULL using object->GetMg()
For most of the rotation, all is fine. But at one part of the circle, in which the NULL's parent rotates, I get weird results using object->GetMg().
As a matter of fact, the Roations data (World) shown in the C4D user interface, also shows these "false" data. But the NULL sits just fine on its parent, it does not move at all.
I find it interesting that the NULL just behaves normal, and sits nicely on its parent object, and at the same time both I in my code, and C4D in the Rotation window, these erroneous data exist.
I need to get correct rotation data from the NULL.
Can I use a Quaternion here? Or is there another way?
And is there some source code somewhere that will show me how to do this?