How to properly combine two 2D matrices?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zylann
:warning: Old Version Published before Godot 3 was released.

I have to use matrices to draw something (to emulate the push/pop transform) but I got lost in missing docs.

I see Matrix32 has basis_xform and xform, both returning Matrix32. I tried xform, and it returned nothing with no error, and my code failed after that because the result was nil. How can I combine matrices then?

:bust_in_silhouette: Reply From: Zylann

It was obvious:
mat1 * mat2

No idea why xform didn’t work :expressionless: