Notifications
Clear all
[Closed] matrix way of "in coordsys…move…"
Aug 13, 2008 4:29 pm
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
Aug 13, 2008 4:29 pm
Is this what you are looking for?
$Node1.pos += <point3> * $Node2.transform - $Node2.pos