How to get rotation around axis in local space?

I have a physics object which is locked to rotate around the Y axis only (Position is locked, too).

When I place the actor in my world without rotating it, I can just read the Y axis rotation and do something with it (i.e. track how often it has rotated).

Hower, once I rotate my actor, this is no longer that simpel. What was once in one Axis is now distributed across several.

How can I rotate a rotation back by the initial rotation the actor was placed with to read the rotation around the Y axis in local space, again?

Hi, if I understood correctly, you are trying to read the rotation of the actor around its Y-axis.

Do you think this could work for you:

  1. Start by saving the initial world transform of your actor (before any physics rotation)

  2. Handle your calculations on the rotation relative to the initial rotation

If this is not enough, could you elaborate on what you are doing and what you are trying to achieve?