This project has moved. For the latest updates, please go here.

Several GravityControllers ?

Topics: User Forum
Oct 22, 2009 at 1:39 PM


I'm planning to create some spatial stuff, powered by FarSeer. My planets, drawn as simple circles, have a gravity force proportional to their size.

I've tried to put several "GravityController" bound to my "PhysicsSimulator", but the last created overrides the others. As well, with only one GravityController, I can't specify some sort

of 'coefficients' for each body in my BodyList.


Is there any way to -simply if possible- circumvent this ?


Keep up the good work ;)


Oct 26, 2009 at 5:24 AM

You can always create your own controller that does whatever you want it to do. Without knowing more specifics of what you want and how the GravityController is lacking for your purposes, I don't really have any other suggestions.

Oct 26, 2009 at 6:10 PM

I forgot to write it on the changelist, but the newest release of Farseer Physics Engine (2.1.2) contains an improved GravityController that takes the object mass into account. Set a higher mass on your large geometries and you should get a higher gravity force from those geometries.