|Jan23-12, 04:32 AM||#1|
Global rotation to local?
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:
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:
[ 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 ] source
physics news on PhysOrg.com
>> Promising doped zirconia
>> New X-ray method shows how frog embryos could help thwart disease
>> Bringing life into focus
|Jan24-12, 01:00 PM||#2|
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.
|matrices, matrix, rotation|
|Similar Threads for: Global rotation to local?|
|Coordinate System Rotation Matrix (global to local)||Calculus & Beyond Homework||3|
|local vs. global charge conservation||High Energy, Nuclear, Particle Physics||3|
|Local/Global Optimization||Calculus & Beyond Homework||4|
|Local vs Global Constants of Motion||General Physics||3|
|what can local self similarty tell u about a global space?||General Math||0|