rotating a box

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

I’m new with programming and i just want to rotate a empty box around it’s center .
i didn’t find the answer anywhere.

:bust_in_silhouette: Reply From: Bimi124

Use rotate() (if your box is a node2d or a node extending node2d. Link to the documentation: https://docs.godotengine.org/en/stable/classes/class_node2d.html?highlight=node2d#class-node2d-method-rotate