Notifications
Clear all

[Closed] Matrix3 scale to [1,1,1]

Hi all. A short question:
How can I set the scalepart of a matrix3 to [1,1,1] before asigning it to a node.transform?

Thanks in advance.

5 Replies

the easiest way is just to rebuild the matrix with no scale:

translate (oldtm.rotation as matrix3) oldtm.position

Thank you very much, DenisT. You’re always there!

funny I was just struggling with this, and came up with a much uglier solution.

1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

hmm… my is not ugly

i can show a fancy one if so:

tm * (inverse (scalematrix tm.scale))