How to rotate a plane to lay flat?

Hi all! In my scene I have created a plane and I am trying to figure out how to simply rotate it 90 degrees to lay flat (parallel to the ground)!

Any help would be appreciated. Thank you.


 plane.rotation.x = BABYLON.Tools.ToRadians(90)

Example - Babylon.js Playground

Is there a way to pass it as a prop in react?

Rotation is a vector -

So in your setup you can use

rotation: new Vector3(Math.PI/2, 0, 0)

Thank you for your help! Very much appreciated.

1 Like