How to access rotational property from an node

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

I am rotating a node:

rotate_object_local(Vector3.RIGHT,ROTATION_SPEED * delta)

I would like to set a maximum rotation. How do I check the current rotation. I assume it’s in the .transform property but I am having trouble making sense of the documentation.

:bust_in_silhouette: Reply From: 2-Zons

found it.

get_rotation_degrees().x

function returns a vector3 with the full rotation of the transform