How can I convert global rotation to local rotation for objects?

AI Thread Summary
To convert global rotation to local rotation for objects, it's essential to understand the relationship between Euler angles and the rotation matrices provided. The user is seeking to calculate the local rotation of a green object based on its global rotation and the rotations of other objects. They have identified that the global rotation is expressed in Euler angles, specifically in the order of Z, X, and Y. The discussion highlights the need for a clear method to apply the rotation matrices to achieve the desired local angles. Assistance is requested to clarify the application of these formulas for a beginner in mathematics.
Fly7
Messages
2
Reaction score
0
Hi all, I don't know if this is the right section, but I really need to solve this problem. I've been searching for the correct formula for two days. OK, here's the picture:

ac2z6g.jpg

The global rotation of all objects (rot_x, rot_y, rot_z): red object (0.00, 45.00, 0.00), blue object (45.00, 0.00, 90.00) and green object (30.00, 35.26, 35.26).

I need to calculate the local rotation of the objects, so the local rotation of the green object should be (0.00, 45.00, 45.00). I want to be able to rotate objects locally, not globally. Here is one formula, but I don't understand how to use it:
Code:
[   1      0       0   ]
[   0    cos(a)  sin(a)] = Rx(a)
[   0   -sin(a)  cos(a)] 

[ cos(a)   0    -sin(a)]
[   0      1       0   ] = Ry(a)
[ sin(a)   0     cos(a)]

[ cos(a) sin(a)   0    ]
[-sin(a) cos(a)   0    ] = Rz(a)
[   0      0      1    ]

[URL="http://stackoverflow.com/questions/6252223/adding-local-rotation-to-global-rotation"]source[/URL]
I hope someone can help me solve this because I'm newbie in math. :frown:
 
Physics news on Phys.org
OK, I've figured out that the global rotation is in euler angles (Z is parent, then X, then Y). Now, maybe someone can help me to convert object's local angles to euler angles. I hope that makes sense to someone. :smile:
 
Hi there, im studying nanoscience at the university in Basel. Today I looked at the topic of intertial and non-inertial reference frames and the existence of fictitious forces. I understand that you call forces real in physics if they appear in interplay. Meaning that a force is real when there is the "actio" partner to the "reactio" partner. If this condition is not satisfied the force is not real. I also understand that if you specifically look at non-inertial reference frames you can...
I have recently been really interested in the derivation of Hamiltons Principle. On my research I found that with the term ##m \cdot \frac{d}{dt} (\frac{dr}{dt} \cdot \delta r) = 0## (1) one may derivate ##\delta \int (T - V) dt = 0## (2). The derivation itself I understood quiet good, but what I don't understand is where the equation (1) came from, because in my research it was just given and not derived from anywhere. Does anybody know where (1) comes from or why from it the...
Back
Top