- Home /
This question was
closed Jul 24, 2013 at 09:52 PM by
clunk47 for the following reason:
Question was answered, correct answer was accepted.
Get rotation around (forward) axis ?
How can I read the rotation of a transform/quaternion around a specific axis?
edit: optimal would be to have a direction vector AND an angle!
Thanks
Comment
Best Answer
Answer by DaveA · Dec 11, 2012 at 07:57 PM
Direction is transform.forward
Rotation is transform.localEulerAngles.z
What if you want to get the rotation (or Euler angle, even) about a specific direction? $$anonymous$$g. I want to see the relative euler rotation about the transform's up direction.