XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Farseer Physics

Last post 11/7/2009 5:08 PM by Joopsy. 2 replies.
  • 11/7/2009 4:04 PM

    Farseer Physics

    Hi,
    Does anyone know how to use the farseer physics engine?
    I tried to add the farseer file to my project and added the lines:

    using FarseerGames.FarseerPhysics;
    using FarseerGames.FarseerPhysics.Collisions;
    using FarseerGames.FarseerPhysics.Dynamics;
    using FarseerGames.FarseerPhysics.Factories;

    but the complier doesnt recgonise these, i dont know why though because i copied them from the farseer examples on the site, does anyone know how to add the engine properly?

    Thanks,
    Eamonn

  • 11/7/2009 5:03 PM In reply to

    Re: Farseer Physics

    I haven't used Farseer, but it doesn't come with XNA Game Studio. It is a separate download. You need either the dll file or the Farseer project and add it to the list of references in your game project. Once you've done that and it's done correctly, the compiler should recognize those lines.
  • 11/7/2009 5:08 PM In reply to

    Re: Farseer Physics

    Have you added a reference to the Farseer project?

    (the Using lines just make it easier to reference the Farseer classes)

    If you expand the "References" folder, can you see Farseer?

    You can either add a reference to the project or the DLL, I advise adding the project to the solution, and then adding a refernce to the project.


    Hope that helps

    J.
    In playtest Flite
Page 1 of 1 (3 items) Previous Next