Skip to content

UXF PositionRotation Tracker: Rotation tracking with Euler Angles #157

Discussion options

You must be logged in to vote

Hi!

UXF just logs the global rotation of the object as euler angles:

Vector3 r = gameObject.transform.eulerAngles;

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:

  1. Write a custom tracker script to log the "direction" of the object looking on each frame. If by direction you mean the vector of the forward direction, then you can just log transform.forward. If you mean something else, you could calculate it in C# then log it. This is the easiest options since…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BearsBeetsBattlestarGalactica
Comment options

Answer selected by BearsBeetsBattlestarGalactica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants