[Closed] transformation matrix math question
For those “in the know” I’m sure this is quite simple, but matrix maths is sinking in very slowly into my old and tired brain. I’ve watched bobo’s matrix explained DVD many times and only bits of it seem to stick each time. I’m not giving up and will keep watching them, but in the meantime I have a small problem.
I have 3 point helpers.+
point01
point02 which is linked to point1 and it’s position and rotation is different to it’s parent.
point03 position and rotation is different to either of the other 2.
I need to figure out how to change the transform of point01 so that point02 is aligned in position and rotation to point03
Thanks,
Cg.
wouldnt it just be:
point01.transform = point01.transform+(point03.transform – point2.transform)
just a guess… might not deal with rotations properly…
$p1.transform *= (inverse $p2.transform)*$p3.transform
to keep the original scale for p1 you have to rebuild the p3 matrix using its translation and rotation, and scale [1,1,1]. If object p3 has not uniform scale the calculation will be a little more complicated.
Once again Denis, thank you. You are truly brainy and even better, truly generous to help.
Cheers,
Cg.