How to rotate camera or rotate bg image automatically?


I want to rotate bg image or main camera rotatory in x axis but how can i do?

Note: My main bg image was come with window.backgroundimage

Hey @ali_shrinkom, are you just looking for how to rotate a mesh or camera or for something more complex? If you’re just looking for how to rotate something, the rotate function should be able to help:

// Example: Rotate the camera by -90 degrees on the X Axis
camera.rotate(BABYLON.Axis.X, -Math.PI/2);

If this isn’t what you’re looking for, could you elaborate?