Orientation offset

Started by
1 comment, last by deltadream 17 years, 4 months ago
Hello, I have a problem and I hope someone might help me solve it. I have two orientations expressed as two euler angles (but I can transform them in matrix or in quaternion). I want to get the orientation offset from the two orientations, so I can apply it to another matrix (orientation). Does anyoe know how can I get the orientation offset from the first two orientations ? Thanks
Advertisement
You have 2 orientations in world space, say A and B. You want the delta orientation, i.e. rotation that, when applied to A, transforms A to B?

If you convert to matrices, then the transform from A to B is Inverse(A) * B since

A * Inverse(A) * B = I * B = B.
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley
Hm that makes sense :),

Thanks, I'll try that.

This topic is closed to new replies.

Advertisement