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

How do I use ApplyForce with a Sprite's Body since Body is private to PhysicsSprite?

Topics: Developer Forum
May 16, 2014 at 1:33 AM
I want to apply force to a Sprite in Farseer physics in my C# Windows Store app. The problem is that the ApplyForce method belongs to the Body object, and a Sprite's Body object object is private to the PhysicsSprite class. What is the correct way to apply force to a PhysicsSprite?

Note, I know I could modify the source and make the Body property public, but there's probably a good reason the authors made it private and I want to do things the proper way.