transform rotation matrix in multimeshinstance

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By websterek


I have problem with understanding how transform is working inside of MultiMeshInstance (and propably in every other places).

I need to rotate my meshes inside of MultiMeshInstance by given degrees angle but only option avaible in this node is transform by matrix and I dont konw how to do that or use function like “rotated”.

On the picture you can see my object with wrong rotated “planks”. How can I rotate them to fit with this “rails”?

PS. When I’m trying to use

rotated(Vector3(-4, 0, -3), 90)

nothing happens but consol output shows a warning:

core\math\matrix3.cpp:751 - Condition ’ p_axis.is_normalized() ==
false ’ is true.

websterek | 2018-03-11 12:32

how about rotated(Vector3(-4, 0, -3).normalized(), 90)

volzhs | 2018-03-11 13:49

So silmple so awesome!!!
Thank You!!!

websterek | 2018-03-11 13:57