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.
-Nate
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.
-Nate
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 - https://playground.babylonjs.com/#NVUFR4#1
So in your setup you can use
rotation: new Vector3(Math.PI/2, 0, 0)
Thank you for your help! Very much appreciated.