Notifications
Clear all

[Closed] matrix way of "in coordsys…move…"

I’ve been searching for here and cannot find nothing about it.

I need to replicate this sentence with matrixes:

in coordsys $Node2 move $Node1 <point3>

This is the solution I get:

$Node1.transform = translate $Node1.transform (transMatrix <point3> * $Node2.transform).translationpart

I guess there will be a cleaner way…
Thanks

3 Replies

Is this what you are looking for?


$Node1.pos += <point3> * $Node2.transform - $Node2.pos

thank you TzMtN

A better way:

$Node2.pos += <point3> * inverse $Node1.transform