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