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...