Save the transform relative to another object when transforming.
Help . Hello. There are for example 3 points. How to get a transform matrix of 1 point when transforming 2 points to 3, so that the position and rotation itself is also preserved between 1 and 2 point. (as if point 1 was linked to point 2)
ObjT = $Point002.transform
TrgtT = $Point003_Point.transform
OffT = $Point001_Point.transform
TmOffset = TrgtT * inverse ObjT
in coordsys local TmOffset .rotation = inverse (TmOffset.rotation as quat)
TmOffset.pos += TmOffset.pos
Attachment | Size |
---|---|
rotate_matrix.jpg | 36.82 KB |
rotate_matrix_2.jpg | 35.55 KB |