This project has moved and is read-only. For the latest updates, please go here.

Gravitational Bodies

Topics: Developer Forum
Jun 28, 2013 at 2:03 AM
Edited Jun 28, 2013 at 2: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 10:14 AM

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 4:07 PM
Fantastic, thanks a lot. :)