Orient Surface to another surface normal

Hi everyone :wink:
Today I have a mathematical problem. I´ve got two surfaces with surface normals of (1,0,0) and (0,0,1).

My goal is to change the orientation of face 1 to the orientation of face 1. In this case I know that I have to rotate the element around x with -90° and then around z with 90°, but I want it to work automatically and to be working in every case.

What do I have to do to reach this goal? (mathematically)

I can find no nodes concerning the orientation of objects :frowning:

Thanks and kind regards,
Jannis

Here is a method to rotate one plane to match normal vector of another plane. The rest is up to you.

You might need to repeat this method twice to match all axes.

1 Like