> Date:         Thu, 3 Oct 2002 14:10:12 -0400
> From: "Noah J. Ternullo" <[EMAIL PROTECTED]>
>
> Howdy!
>    I have three Transform3ds (A,B,C).
>
> A = the previous position and orientation of an object
> B = the current position and orientation of an object
> C = the current positoin and orientation of the camera
>
> I want to take the difference between A and B (the change in
> orientation and position) and apply it to C.
>
> Seems like a simple enough set of operations but I'm having
> difficulty.  Any help would be *greatly* appreciated.

Let's rename things to make it a little clearer:

A = prevObjectToVworld
B = currObjectToVworld

Then
prevVworldToObject = prevObjectToVworld.invert()

And
currObjectToPrevObject = prevVworldToObject X currObjectToVworld

This is the position and orientation of B relative to A, or the "difference"
matrix between B and A.


Alternatively,
currVworldToObject = currObjectToVworld.invert()

And
prevObjectToCurrObject = currVworldToObject X prevObjectToVworld

which is the position and orientation of A relative to B.

-- Mark Hood

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to