I am trying to rotate the mesh in Babylon js.
But the rotation is not proper in all the axis.
- I want my cube mesh to be lit by the directional light on all the faces.
- I don’t need the light to navigate with the default arc rotate camera. The light position should be always in a fixed position. Hence i opted for rotating the mesh alone.
In the following PG, I am not able to rotate the mesh along X axis(for red & yellow face).