# Orientation offset

This topic is 4439 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

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

##### Share on other sites
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.

##### Share on other sites
Hm that makes sense :),

Thanks, I'll try that.

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 14
• 10
• 9
• 35
• 16
• ### Forum Statistics

• Total Topics
634125
• Total Posts
3015674
×