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.

Dark GDK / Orbit objects

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th Sep 2008 19:41 Edited at: 15th Sep 2008 19:42
Hi,
I have written this code to get an object to orbit 0,0


It works however its not smooth at all. I tried changing the orbit_ammount in my code but it didnt make it any smoother.

Any help would be appreciated,
Thanks,
Alex

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 15th Sep 2008 19:58
Are you checking your frame rate to make sure that it's remains constant?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th Sep 2008 20:00 Edited at: 15th Sep 2008 20:00
Yea the frame rate is good I can move around smoothly in the game

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th Sep 2008 21:00
I fixed it , instead of using dbSin & dbCos use sin & cos. I guess dbSin/Cos cant handle the small numbers

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 15th Sep 2008 21:05
Nice to know. I suspect that the functions more native to the programming language are more efficient than those borrowed from other implementations.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-09-30 05:37:06
Your offset time is: 2024-09-30 05:37:06