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
2
votes
1 answer

How to drag a Farseer body with the mouse, without springiness?

I am using Farseer and XNA. I'm trying to drag an body with the mouse, but I don't want a spring behavior, like in the demos.I want the object to follow the mouse very closely and without springiness, but still be able to rotate. I tried using…
Shachar Weis
  • 936
  • 2
  • 20
  • 44
2
votes
2 answers

Farseer Physics XNA Geom 'Tripping'

I have an issue similar to http://farseerphysics.codeplex.com/Thread/View.aspx?ThreadId=72364 I have a rectangle player geom, and many rectangle tile geoms lined up next to each other. Occasionally when the player geom is crossing between them he…
asleep
  • 4,054
  • 10
  • 34
  • 51
2
votes
1 answer

XNA Farseer. Raycast is going through shapes

I'm making a game in XNA. I'm doing a raycast from the enemy to the player to determine if the enemy can see the player. Heres the code.. private float RayCallBack(Fixture fixture, Vector2 point, Vector2 normal, float fraction) { …
Guye Incognito
  • 2,726
  • 6
  • 38
  • 72
2
votes
1 answer

Farseer, MonoGame, ball does not bounce

I have successfully integrated Farseer for XNA into MonoGame with little to no trouble. Stacking, complex dynamics, etc. all seem to be working fine, but I absolutely cannot make a ball bounce on a floor. When the ball touches the ground, it simply…
Giuseppe Maggiore
  • 2,011
  • 1
  • 23
  • 31
2
votes
1 answer

Farseer physics mass/weight issue

I have created a platformer game using farseer physics with a player and some objects etc but are having some problem with mass on objects. The player is composed by a wheel and a torso connected with a joint and everything works almost perfectly…
m4ttsson
  • 203
  • 2
  • 8
2
votes
1 answer

Farseer Assertion Failure

We're creating a game for a school project. It's a 2D platformer and it is in its very early stages. We use C#/XNA and we're implementing Farseer Physics Engine. I'm currently struggling with the map-class. In the class we have a List of…
elsgard
  • 43
  • 3
2
votes
1 answer

How to represent terrain as physics objects in Box2D/Farseer

What's the best way to represent generated 2D terrain in Box2D/Farseer? The terrain consists of some hills - think of some dunes. There is a method to generate polygons from a texture described in the Farseer…
j00hi
  • 5,420
  • 3
  • 45
  • 82
1
vote
2 answers

Slowing down object in Farseer

I'm using Farseer in XNA and using the function named ApplyLinearImpulse() to get an object to move in a specific direction. How can I get the object to slow down naturally using Farseer?
Simon Jefferies
  • 415
  • 4
  • 16
1
vote
3 answers

Farseer ConvertUnits?

In FarseerPhysics engine / XNA, what is ConvertUnits.ToDisplayUnits(); ?
Noon
  • 101
  • 4
1
vote
1 answer

Farseer: Collision detection, but without further body interaction

I have a ball that rolls through a maze-like world. I want an event to rise if the ball crosses a certain line. I don't want to place a texture at this line and I don't want the ball to be deflected. How can it be done? Thank you!
Norbert
  • 4,239
  • 7
  • 37
  • 59
1
vote
1 answer

How to let two bodies collide in Farseer and pass the impulse to the 2nd body?

I have a sandbox with a puck (circular fixture) and a bat (directed by user's mouse movements). If the user hits the puck I want it to get an impulse based on the mouse movement speed. However I have issues: In the collision delegate if I check the…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
1
vote
1 answer

C# XNA Farseer - Creating Shapes From Textures

I want to create collision vertices to attach to bodies in XNA with Farseer, according to loaded Texture2Ds. A caveat, first of all. is that I'm not using Farseer for anything other than collision. Rendering and all other game code is done using my…
Xenoprimate
  • 7,691
  • 15
  • 58
  • 95
1
vote
1 answer

Raycast missing detections using Farseer Physics in VB.NET.XNA

I'm using a raycast to determine the anchor location of a ropejoint. By using some simple draw calls, I can see that the ropejoint is being reliably created at the point the raycast returns. My problem lies in the return point. It occasionally…
Michael
  • 1,803
  • 1
  • 17
  • 26
1
vote
1 answer

FarSeer : Remove Object On MouseClick

I'm still developing a small game, where I want to remove boxes when I click with mouse using FarSeer Engine 3.3 [if there is a solution I may already use 3.1] Do not show me the example sources [i've them all, already and digged them deeply] my…
icaptan
  • 1,495
  • 1
  • 16
  • 36
1
vote
1 answer

"nullreferenceexception was unhandled" in body.cs of farseer physics engine

I'm a c++ programmer trying out c#. I've done a lot with box2d in c++, but this is my first time with c#. So, I'm trying to make a simple game with farseer physics engine. When I try to compile my code (I'm using visual studio c# 2010 express and…
RylandAlmanza
  • 1,358
  • 1
  • 8
  • 14
1 2
3
10 11