What are controllers and how do they work?

Aug 11, 2010 at 5:59 PM
Hey all...I've read the entirety of the documentation for Farseer located here: http://www.farseergames.com/storage/farseerphysics/Manual2.1.htm 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
Coordinator
Aug 11, 2010 at 10: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.