Re: [script][5.11] Get difference between 2 rotations

Date : Thu, 04 Oct 2007 21:36:24 +0200
To : XSI(at)Softimage.COM
From : Martin Matzeder <xsi(at)booyabase.de>
Subject : Re: [script][5.11] Get difference between 2 rotations
I'm afraid, doing this with euler angles is doomed. i would solve this in quaternion space like this
You have 2 start quaternions startQuat and endQuat, and a Quaternion deltaQuat to store the result


endQuat.InvertInPlace()
deltaQuat.Mul(endQuat,startQuat)

this gives You the difference of this 2 rotations. Thought the object model You can apply it back

martin

Bernard Lebel schrieb:
Hello,

I'd need some guidance here. Say I have 3 objects. I want the third
object to get the rotational difference between the first two.

In a simplified example, the first object has rotx 25.0, the second
has rotx 15.0, so I'd want the third object to get rotx of 10.0.

I'm not sure at all where to go from there, using the XSI math
objects. Do I have to perform a subtraction for every axis of the
rotation?


Thanks Bernard --- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.