I'm having a ton of trouble trying to implement farseer. Please help.

Aug 4, 2011 at 9:57 PM
Edited Aug 4, 2011 at 9:58 PM

Hey everyone, I'm sure you get this question a lot, But i can't seem to find an answer. I've been trying to get farseer to work with my project for about two-three hours now, And i just can't seem to get it to work. 

I've searched for tutorials, But none of them work for me, I've tried adding the .dll from the main download, But I'm not sure it's the right one, Because there are four different .ddl's in the file, And it's really confusing.

I have also tried adding the files i got from the "Source Code" tab on the site, And once those were in my project i couldn't figure out how to reference them in the code, I added the project to the reference folder, And then put "using FarseerPhysics;", But even after that i couldn't get it to work. I tried copying some code from here: http://farseerphysics.codeplex.com/documentation  after all of the previous stuff, But it would tell me "The type or namespace name 'World' could not be found (are you missing a using directive or an assembly reference?)". I'm not sure what I'm doing wrong.

Can somebody please walk me through step-by-step what exactly I'm supposed to do? It seems like a long shot, But maybe somebody has time to write it all out. Thanks in advance.

 

Edit: I'm using Microsoft Visual C# 2010 Express.

Aug 4, 2011 at 10:16 PM

Take a look at this article it will get introduced to Farseer. It 3.2 but will help http://www.codeproject.com/KB/windows-phone-7/BounceBall.aspx if your still having problem will be glad to assist further.

Aug 5, 2011 at 12:04 AM
elijahnomad wrote:

Take a look at this article it will get introduced to Farseer. It 3.2 but will help http://www.codeproject.com/KB/windows-phone-7/BounceBall.aspx if your still having problem will be glad to assist further.

Thank you so much for that tutorial, It helped with a lot of things, Except i have one problem; I can't call something from FarseerPhysics by it's self, What i mean by that is for example: I want to call "World", instead of just typing "World" i have to type "FarseerPhysics.Dynamics.World" Even though i have put "using FarseerPhysics;" at the top of the code where all the other "Using" lines are. What is the problem?

Aug 5, 2011 at 12:51 AM

Do you know what a namespace is?

 

Just indicate you program you will be using the "namespace FarseerPhysics.SamplesFramework".

Aug 5, 2011 at 12:08 PM

For the type 'FarseerPhysics.Dynamics.World' the namespace is 'FarseerPhysics.Dynamics'.

using FarseerPhysics.Dynamics; // you need this

Aug 5, 2011 at 4:59 PM

Oh yeah, I meant what Killerbyte said XD

Aug 7, 2011 at 12:30 AM

I have a lot of trouble myself. The tutorial seems obsolete even though it is not so old. 

Any other sources ?