Jump to content


- - - - -

how to now get degrees for X my axis


2 replies to this topic

#1 enjoycrf

    Banned

  • Banned
  • PipPip
  • 52 posts

Posted 25 February 2011 - 08:31 PM

i did it with get degrees from 2 vectors using atan2 for my side to side rotation
but if i plug in the numbers for my up and down movement it gets messed up
and i know im sort of there
because i can see that its giving me the right angle
but the angle goes down to 0 around the x or y axis poles
not sure exactly which one
but if im looking straight it works fine
if i look to the side it starts dropping the angle

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 25 February 2011 - 08:52 PM

http://mathworld.wol...oordinates.html
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 enjoycrf

    Banned

  • Banned
  • PipPip
  • 52 posts

Posted 26 February 2011 - 09:14 AM

gods work
thx >.<





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users