Getting the rotation of a RigidBody2D

Godot Version

4.4.stable

Question

Hey. I am trying to detect when a RigidBody2D rotates 360 degrees, and I’m assuming that I would need to get the rotation of the RigidBody. I’m wondering how i could go about doing that.
I’d appreciate any other suggestions, but would still like to know how to check the rotation of a RigidBody

RigidBody2D inherits from PhysicsBody2D, which inherits from Node2D. Node2D has a property named rotation, so you can access it from the RigidBody2D.

Note that when you obtain the rotation, it’s in radians instead of degrees. Also, it’s the rotation relative to the node’s parent.

Thanks, that worked.
I did also find a property called rotation_degrees which seems to return the rotation in a range of -180 to 180.