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.

Author
Message
madmaz
17
Years of Service
User Offline
Joined: 14th Mar 2009
Location:
Posted: 25th Nov 2011 10:12
Ok, it's me again. I've been trying to program a 2D space simlulation where you can place stars planets moons and such. But I'm not really being able to correctly control the gravity of the planets.


I want to be able to make the user apply a force to the planets he places. so the planet goes in that direction until it get's pulled by a gravitational force of a star.

If anyone would care to help me out with some formula for this or with a little sample code of how to do this.

Thanks

Programing is not as easy as it seems at first... the learning is never really over...

Login to post a reply

Server time is: 2026-07-10 01:59:23
Your offset time is: 2026-07-10 01:59:23