How to use Farseer in windows phone 7 (with xna)

Topics: Developer Forum, Project Management Forum, User Forum
Apr 3, 2012 at 6:17 PM

Hello everyone.
I'm new with farseer (really noob) and i have one question for you.
The most important thing i guess, how can i use farseer with a new wp7/xna project?

I mean, i saw every examples but i don't understand what i have to include into the project. Can you tell me how can i use it?

 

Apr 3, 2012 at 7:07 PM

I would recommend you read this article. http://www.codeproject.com/Articles/173529/BounceBall-XNA-Farseer-Magic It deals with Farseer 3.2 but will teach you the basics of using Farseer and also help you with setting up your first project. Hope this helps.

Apr 3, 2012 at 7:31 PM
elijahnomad wrote:

I would recommend you read this article. http://www.codeproject.com/Articles/173529/BounceBall-XNA-Farseer-Magic It deals with Farseer 3.2 but will teach you the basics of using Farseer and also help you with setting up your first project. Hope this helps.

Wow thank you 

Apr 3, 2012 at 8:33 PM

there's a problem with the farseer library i think...

 Fixture floorFixture = FixtureFactory.CreateRectangle(MyWorld, ConvertUnits.ToSimUnits(480), ConvertUnits.ToSimUnits(10), 10);
when i wrote this line of code i receive an error on CreateRectangle, ConvertUnits.. it seems that "ConvertUnits does not exist in the current context" and for CreateRectangle it seems that FixtureFactory does not contain a definition for it... help :(

Apr 3, 2012 at 8:38 PM

FixtureFactory should be replaced with BodyFactory.