How to create rotation on the y-axis?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By abbos

Hello
I have a problem with the following code
The camera does not rotate along the y-axis, it only rotates on the x-axis
How to create rotation on the y-axis?

Have you tried playing around with the Vector3 in the rotated() function? Instead of Vector3(0,1,0), maybe try Vector3(1,0,0) or Vector3(0,0,1)?

Ertain | 2020-10-10 17:48