Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / y-angle not graduating from 0 through to 360

Author
Message
el zilcho
17
Years of Service
User Offline
Joined: 4th Dec 2006
Location:
Posted: 15th Mar 2007 21:26
hi everyone, im new to programming

im trying to return the y angle of an object but as it rotates past 90 degrees it starts getting smaller again and reaches zero at 180 degrees, only then to suddenly hit 360 degrees after 180 and decrease to 270 before incresing to 360 and reaching 0.

phew.

im sure this is most likely a common problem, so can anyone help me out?

-EZ-
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 15th Mar 2007 21:54
What commands are you using to rotate the object?

These two methods return different results in angles but have the same effect.





el zilcho
17
Years of Service
User Offline
Joined: 4th Dec 2006
Location:
Posted: 15th Mar 2007 22:01
thanks v. much, the top one is what i wanted.

problem solved

-EZ-

ps. im entering the coding challenge. what a bad move at my level.

Login to post a reply

Server time is: 2024-09-25 19:22:22
Your offset time is: 2024-09-25 19:22:22