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

What are controllers and how do they work?

Aug 11, 2010 at 4:59 PM
Hey all...I've read the entirety of the documentation for Farseer located here: I have not found very much information there regarding controllers and how they are used in the engine. Is there a good resource out there for learning this aspect of Farseer? I would like to do a space game with some celestial bodies providing gravitational influence. I understand this can be done using Planetary Gravity Controller (as mentioned briefly in the documentation). But I don't know how controllers impact the system and how to best utilize them to achieve the effect I'm looking for. Thanks in advance! --RB
Aug 11, 2010 at 9:06 PM
Controllers are pieces of logic that run on each engine update. To get planetary gravity, you simply create a new instance of the controller and add it to the engine. Once you add the necessary bodies to the controller, the bodies should have extra gravity applied to them.