0
Answered

scene.rotation script

Sravani Gogineni 3 months ago • updated by Vitaly Ovchinnikov 3 months 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);

GOOD, I'M SATISFIED
Satisfaction mark by Sravani Gogineni 3 months ago
Answered

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: