How can orbit around an object in Godot 4

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

How can orbit around an object in Godot 4. I tried to convert the Orbit camera from Godot 3, but I got an error with the missing “set_euler” command.

:bust_in_silhouette: Reply From: jgodfrey

In Godot 4, you want the from_euler() function. Docs here. Though, do note that the new function returns a new Quaternion rather than setting the current one.

Thank you! "var t = Quaternion().from_euler(_rotation) " worked.

MeatRack | 2023-03-02 13:45