UXF PositionRotation Tracker: Rotation tracking with Euler Angles #157
-
Hello, I am having a bit of trouble again. What I am doing is tracking an object in Unity with the UXF tracker. I want to plot the direction of the object "looking" in python and therefore I am transforming the Euler Angles into normal angles. It looks like this right now: The blue line is the trajectory of the object and the black arrows are the direction of it looking at this position It seems like there is an offset or something else saved from unity. Do you have any ideas what the UXF trackers are tracking exactly? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! UXF just logs the global rotation of the object as euler angles: Not sure exactly what you are doing to transform Euler Angles into "normal angles". There's no offset or anything like that. But there are a few things you could do:
https://docs.unity3d.com/ScriptReference/Transform-eulerAngles.html Unity uses a left-handed coordinate system which may also be relevant. |
Beta Was this translation helpful? Give feedback.
Hi!
UXF just logs the global rotation of the object as euler angles:
unity-experiment-framework/Assets/UXF/Scripts/Trackers/PositionRotationTracker.cs
Line 25 in fbeeb77
Not sure exactly what you are doing to transform Euler Angles into "normal angles". There's no offset or anything like that. But there are a few things you could do:
transform.forward
. If you mean something else, you could calculate it in C# then log it. This is the easiest options since…