loocas
06-07-2008, 12:46 PM
Hi there, first off, the topic name is a bit misleading. All I need to know is the way to calclate an object's full transform as if it was some other object's child.
I mean, let's imagine. I have three points. $Point01 - $Point03
$Point01 is the parent of all the other points. So when I rotate/move/scale it, all the children get transformed correctly according to that. The thing I want to achieve is a script tha'd calculate the $Point03's transformation based off of $Point02's transformation change. As if the $Point03 was a direct child of the $Point02.
How do I go about it? I understand matrices as well as quats, the only problem I have is finding the right "formula" for calculating the $Point03's transform property and assigning it to it.
I know that multiplying $Point03's transform by an inverse of $Point02's transform will get me into the $Point02's space, but what then?
Any tips or hints will be greatly appretiated. :beer:
I mean, let's imagine. I have three points. $Point01 - $Point03
$Point01 is the parent of all the other points. So when I rotate/move/scale it, all the children get transformed correctly according to that. The thing I want to achieve is a script tha'd calculate the $Point03's transformation based off of $Point02's transformation change. As if the $Point03 was a direct child of the $Point02.
How do I go about it? I understand matrices as well as quats, the only problem I have is finding the right "formula" for calculating the $Point03's transform property and assigning it to it.
I know that multiplying $Point03's transform by an inverse of $Point02's transform will get me into the $Point02's space, but what then?
Any tips or hints will be greatly appretiated. :beer:
