How to get local rotation degree of an object in 3D?

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

Currently having var drag to make it harder for my car to accelerate as speed goes up. Works well. Now I need to get my car’s local rotation degree to use this data to manipulate drag so that the car slows down even more as per steering degree. I can figure out the manipulation part if only I find out how to get object’s local rotation degree in 3D.

Thank you for your time!

:bust_in_silhouette: Reply From: DaddyMonster

There’s an inbuild getter for the local rotation as part of Spatial:

get_rotation_degrees()

or in radians:

get_rotation()

Highly appreciated!

Suleymanov | 2021-02-19 15:34