Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
SamedTarik

Pitch yaw and roll angles as float

Question

Hi guys,

I'm making an aircraft hud right now. And i need to get degrees from each axis independently from other 2 axises. I tried euler angles and rotation values but they kinda not give me exact correct values.

Thanks in advance.

Edited by SamedTarik

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I found something like this

answers.unity3d.com/questions/416169/finding-pitchrollyaw-from-quaternions.html

But, isn't there a way that not bothers with quaternions?

Share this post


Link to post
Share on other sites

  • 0

Not sure what you want but here some keywords to help ?

 

rotation

localRotation <- if object is child of some other object

eulerAngles

localEulerAngles <- if object is child of some other object

Share this post


Link to post
Share on other sites
  • 0

I want rotations on x,y and z axis seperately. Euler angles are suffering from gimbal lock and not always gives same value, rotations neiter. They both change values to negative on a 360 degree flip. Quaternions do the job buy they are too complex. I was just wondering if there is a way to get this without directly using Vector4 and quaternions.

Share this post


Link to post
Share on other sites
  • 0

Whats wrong with those you mentioned? if they are long to write everytime then just do own function for it

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

No no, they work perfectly but i thought it will cause performance issues. Cause i will use them for GUI.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...