Questions tagged [farseer]

C#/XNA port of the Box2D physics engine.

The Farseer physics engine is a port of the Box2D physics engine with additional methods to ease the creation, manipulation, and destruction of physics bodies.

The project is hosted on codeplex and all Box2D documentation such as the Box2D Manual is applicable.

153 questions
0
votes
0 answers

Error while importing Farseer Physics Engine

When I import Farseer Physics Monogame to my project and add the dependency then I am getting this error as mentioned below. I would appreciate any help. Also is there any other Physics engine which is a better alternative and have well…
Gaurav A Dubey
  • 641
  • 1
  • 6
  • 19
0
votes
1 answer

MonoGame trying to use Farseer. Error: Could not load assembly - doesn't exist in the Mono for Android profile

I've been struggling with this error for far too long. Xamarin bugzilla seems to have claimed a fix, but after using their latest version, nothing seems to work. I've read this: System.IO.FileNotFoundException: Could not load assembly...perhaps…
Eric
  • 444
  • 7
  • 19
0
votes
1 answer

Box2D Farseer Physics Center of Mass and origin inconsistent

I am using the Farseer Physics library with MonoGame. In my game I use compound polygon bodies, created with BodyFactory.CreateCompoundPolygon(...);, but they have problem. Their origin is in the top left corner, rather then the centroid like most…
Pema Malling
  • 131
  • 8
0
votes
1 answer

MonoGame with Farseer physics engine. Can't locate at bottom

I'm trying to learn how to implement physics in games, so I chose Farseer Physics. I'm trying to implement the falling round object till the obstacle(ground in my case). Here's my code: using FarseerPhysics; using…
Fallen Angel
  • 163
  • 1
  • 4
  • 15
0
votes
1 answer

Circle out of Vertices

I want to create a circle from Vertices in Farseer: Vertices circleVertices = PolygonTools.CreateCircle(ConvertUnits.ToSimUnits(96), 10); As you see the radius is 96 px and it has got 10 edges. No problem so far! Next I wanted to display it (with…
user2737037
  • 1,119
  • 1
  • 16
  • 29
0
votes
0 answers

How to move body out of collision on Farseer + Monogame?

I'm making a game where I have a Kinematic body that needs to move next to a Dynamic body when it stops. Now let's assume that I have the following scenario: The black line is my terrain, the blue circle is my dynamic body and the red rectangle is…
Cristiano Santos
  • 2,157
  • 2
  • 35
  • 53
0
votes
1 answer

How to calculate distance between a fixture and a point in Box2D/Farseer?

Basically, I have a fixture, and a point. I want to know the distance between them (not between their centers). I know there exists the Distance API, but it only works with 2 fixtures :/
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
1 answer

Farseer getting lot of warnings

I am trying to run one of the farseer physics samples from http://farseerphysics.codeplex.com/downloads/get/722127. I am still getting these warnings and I don't know why. Any solutions? Errors: https://i.stack.imgur.com/XTvgX.png
Naxmars
  • 13
  • 6
0
votes
1 answer

Gravity issue using Farseer Physics

Having an issue with farseer physics im pretty sure the issue is just with this line of code because of the y value. So when i try to move my character when falling he moves left and right normally but his fall slows. body.LinearVelocity = new…
KGSB
  • 39
  • 7
0
votes
1 answer

Are BodyDef / FixtureDef available in Farseer Physics?

I've searched through all of the documentation that I can find for Farseer, and cannot find how to use BodyDef / FixtureDef in my projects. Have these been renamed to something else when they were ported over from Box2D? My main concern is…
Feek
  • 640
  • 6
  • 20
0
votes
1 answer

What is wrong with my implementation / build of Farseer Physics in that I can't call certain classes?

My version of XNA: 4.0 My version of VS: 2010 Express My version of Farseer: 3.5 I am attempting to implement the Farseer physics libraries into my XNA project. I downloaded the source code, and built the FarseerPhysics Xbox360 library as well as…
Feek
  • 640
  • 6
  • 20
0
votes
0 answers

Box2D/Farseer conveyor belts - character gets squeezed into ceiling

I have implemented moving my character using Contact.TangentSpeed (something similar to this: http://www.iforce2d.net/b2dtut/conveyor-belts): foreach (var contact in GroundContacts) { contact.Contact.TangentSpeed =…
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
1 answer

When can a Box2D/Farseer contact have FixtureA and FixtureB as null?

As in question. I have my contact with FixtureA and FixtureB as null, even though the fixtures exist in the Box2D world.
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
1 answer

Cannot implicitly convert type 'System.Collections.Generic.List' to 'FarseerPhysics.Dynamics.Fixture'

I always get this error message in this line when I try to attach a fixture to a body. Fixture Newfixture = FixtureFactory.AttachCompoundPolygon(list, 1.0f, TestBody); Cannot implicitly convert type 'System.Collections.Generic.List' to…
Leo
  • 267
  • 1
  • 4
  • 14
0
votes
0 answers

Trying to create a Picture in picture using farseer and camera2d

I am working on a game where the main screen in on one camera. What i want is to have a small box on the screen working as a monitor or a picture-in-picture showing another area. How can i set the second camera(the PIP one) to be contained in a…
Danfus
  • 13
  • 1