Postion a mesh orthogonal to another one

Hi,

I have a mid point between 2 meshes, I need to place a mesh exactly perpendicular to the mid point, we assume x,z plane the y will be constant. What function in BabylonJS gives me an orthogonal vector so I can draw this mesh?

Thank you guys!

1 Like

https://playground.babylonjs.com/#TZTHV1#2 - double click on this
https://www.babylonjs-playground.com/#2C8LVE#16 - simple mouse hover on this
Cheers! :beers:

2 Likes

Thank you, they look very interesting! I’ll study them.