how to rotate a Spatial node by using transform?

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

i want to rotate a Spatial node with transform but how to do it, is it possible??

:bust_in_silhouette: Reply From: BraindeadBZH

I don’t know why you want to use transform specifically but have you considered using quaternion which is the preferred solution to do 3D rotation: https://godot.readthedocs.io/en/stable/classes/class_quat.html