scene.rotation script

Sravani Gogineni 2 years ago updated by Vitaly Ovchinnikov 2 years ago 1

I want to rotate my canvas with z rotaion 11.00, Please confirm that this script will work for the same?

It seems not working.

scene.rotation = vec3(0,0,11);


You can do this either by rotating the canvas itself or by rotating the camera. To rotate the canvas use:

node("Canvas_1").rotation = vec3(0, 0, 10);

To rotate the camera use something like that:

scene.camera.setAngles(40, scene.camera.vangle);

More details are here: