How to ground align

Hi everyone, I have the problem as in https://playground.babylonjs.com/#LCYF77#42
I want the mesh to translate+rotate so that the 3 selected points are on the ground
Please help, thank you :pray:.

Find the normal to the plane of the three points and use that to translate to whatever the ground is?

1 Like