View Full Version : Get Local Rotation One object relate another

08 August 2007, 07:34 PM
Hi guys, i need to get local rotation of one object relate of another. But it should calculate 360 degree. The way trought angle between two vectors not valid because it use 180 degree freedom. Thanks a lot.

08 August 2007, 09:42 PM
Get the global matrix of both the objects. Then multiply the matrix of the object you want to know the relative rotation for the inverse matrix of the other object. Then you'll need to
find some conversion from matrix to euler angles somewhere, probably there should be something like that even in the transform node documentation.

Hope this is helpful.


08 August 2007, 02:15 PM
Hm that interesting, I will try to get those angles trought those equation... rotation about the x-axis rotation about the y-axis rotation about the z-axis

Thanks for your help :)

08 August 2007, 04:35 PM
Remember always to consider the order in which the rotation is applied, cause a different order with the same rotation values for X, Y and Z, create a different orientation/rotation.

This is another problem relative to the euler angles.

anyway you can use these and find more with google:


09 September 2007, 08:20 AM
i have to do something similar.
Did this approach work out?

CGTalk Moderation
09 September 2007, 08:20 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.