Dubbie
12-18-2007, 10:21 PM
Here is my scenario:
I have two objects objA and objB not linked to each other. They each have a random rotation and position.
Here is what I want to do: Imagine that objB is linked to objA and then objA is basically given an identity matrix as its transform so that it returns to 0,0,0 and all rotation is reset. However, because objB was linked to it, objB is in exactly the same position RELATIVE to objA as it was previously.
What I want to know is how can I calculate the NEW transform matrix of objB without having to move or link anything?
I suspect this is simple, I just haven't been able to figure it out!
Thanks in advance,
Rhys.
I have two objects objA and objB not linked to each other. They each have a random rotation and position.
Here is what I want to do: Imagine that objB is linked to objA and then objA is basically given an identity matrix as its transform so that it returns to 0,0,0 and all rotation is reset. However, because objB was linked to it, objB is in exactly the same position RELATIVE to objA as it was previously.
What I want to know is how can I calculate the NEW transform matrix of objB without having to move or link anything?
I suspect this is simple, I just haven't been able to figure it out!
Thanks in advance,
Rhys.
