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.

Code Snippets / [DBP] - EZRotate correct orbit rotation

Author
Message
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 1st Dec 2013 16:45
For a long time i used this piece of code for rotation:



Which does the job almost perfectly.Sometimes it does add up fractions of an angle and mess up everything.

For real precission i found out that i need to add or substract from EZro_GetEulerX(),EZro_GetEulerY() and EZro_GetEulerZ(), because when it reach certain point it shift with 1 degree.

Correct code:



Coding is My Kung Fu!
And My Kung Fu is better than Yours!

Login to post a reply

Server time is: 2024-11-21 12:03:26
Your offset time is: 2024-11-21 12:03:26