how to get sum of all rotation?

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

We have multiple scenes in scenes, something like this:
MainScene
-ComplexObj
–SimpleObj
—UniversalPartOfObj
Every scene is rotated by different amounts via standard transform. We need to know final rotation of UniversalPartOfObj, but when we use rotation in code it shows just rotation of UniversalPartOfObj.
Sorry if it is hard to understand what we mean.

:bust_in_silhouette: Reply From: jgodfrey

Sounds like you just want the global_rotation value of the UniversalPartOfObj node. So, just grab the value of that property.

Thank you! It is exactly what we need!

HolPurrrtiv | 2023-01-26 11:08