Gravitational Bodies

Topics: Developer Forum
Jun 28, 2013 at 1:03 AM
Edited Jun 28, 2013 at 1:04 AM
I'm writing a game that involves 'celestial bodies' in 2D, so basically a 2D representation of a solar system, but from the perspective that if we say use our solar system as the example, should you go straight up from 'Earth' then you'll eventually reach say, Pluto's orbit, to make this experience more 'realistic' I'm asking if it's possible via Farseer to make a 'planet' with gravity, so you're affected by it's gravitational field, rather than just being forced 'down' you're pulled towards the planet, making orbits and the like possible.

Thanks for your time.
Jun 28, 2013 at 9:14 AM
Hi,

look at the GravityController, it allows you to do exactly what you need.
There is a planet sample in the test bed.
Jun 28, 2013 at 3:07 PM
Fantastic, thanks a lot. :)