How do I rotate the camera in visual script?

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

I’m trying to figure out how to rotate the camera using visual script, but there seems to be no tutorials on how to do it, i’m using Godot 3.4.

:bust_in_silhouette: Reply From: Cherard

Assuming you are using Camera2D, first enable the “Rotating” boolean in the node inspector. Otherwise, your camera will be unable to rotate. Then, you can use Nodes2D’s “Rotate(float)” Visual Script node to rotate the camera. If you are using a spatial camera, you don’t need to enable a rotating boolean, and you can use Spatial’s “Rotate (Vector 3, Float)” Visual Script node.

Hope that helps! Tell me if you are still having issues.

is it possible to rotate it using the mouse-pad?

MKO313279 | 2021-12-30 23:44