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
3
votes
4 answers

How can I manipulate a RagDoll made with farseer physics in Silverlight?

I made a ragdoll similar to the one in this demo. This rag doll will be used for a turn based rpg game where the physics will be used for animations such as character taking damage, dying, falling down, etc. What I am pondering at the moment is as…
Drahcir
  • 12,311
  • 19
  • 63
  • 76
3
votes
1 answer

How to make a physics character moving without rotating

currently I'm developing a simple game which uses physics engine (Farseer for XNA). I would like to ask how can I make the character so that he can walking on the ground, jumping on platform without rotating itself. Because I need to update the body…
Birdkingz
  • 31
  • 2
3
votes
1 answer

MulticastDelegate.GetInvocationList() allocates. Is there a way around this?

Is it possible to invoke a MulticastDelegate and process the return value of every attached handler without allocating any memory? Background In the scheme of normal things, the Delegate[] allocated by MulticastDelegate.GetInvocationList() is…
Aranda
  • 855
  • 8
  • 17
3
votes
1 answer

How to parse image for border vertices? Complex object geometry (farseer physics)

How could I create body vertices by scanning image and detecting it's shape (of it's non-transparent pixels)? I wanna create complex geometry, and I actually have no real idea where to start, so any advice would be highly appreciated. Accepted…
Johnny
  • 889
  • 2
  • 13
  • 24
3
votes
1 answer

How to resize a Farseer body, along with it's joints and connected bodies?

I'm using FarSeer and XNA. Is there an easy way to resize or scale a FarSeer body ? Thanks.
Shachar Weis
  • 936
  • 2
  • 20
  • 44
3
votes
1 answer

Farseer Physics objects don't quite touch

I've just got Farseer Physics working and I've created a quick/crude base object I can use to create objects easily. So I've set up a quick simulation and it looks like this: in DebugView, it looks like this: Upon closer inspection, with both…
MatthewMcGovern
  • 3,466
  • 1
  • 19
  • 19
2
votes
1 answer

XNA Vector2 ambiguous issue with Farseer library

So I searched and couldn't find anyone else having this problem: When I try to use a Vector2 anywhere in my code, the following error is spit out at me: Ambiguous reference: Microsoft.Xna.Framework.Vector2 Microsoft.Xna.Framework.Vector2 match Yes,…
2
votes
1 answer

Reproducing gravity physics results with different timesteps

I'm writing a physics-based game which has planets with gravity acting upon various objects such as missles. (Using the Farseer Physics engine) For the main gameplay, I am using a single physics simulation with a fixed timestep. This is all well and…
Kal_Torak
  • 2,532
  • 1
  • 21
  • 40
2
votes
1 answer

Farseer 3.3 Checking if a non enabled body will collide if it were to be enabled (spawning)

I am using Farseer 3.3 and XNA. I have a problem that i just cant solve in a nice way. I have a situation where there is a world with bodys in it all working away doing there thing. I then have an object thats body is set to not enabled, is there a…
Nick
  • 948
  • 2
  • 12
  • 24
2
votes
3 answers

How to determine if an object is at rest?

Using the physics helper library. I'm trying to figure out how I can determine whether a physics object is at rest. Does anyone know how to do this or have any ideas of what I could do? An example scenario is a bouncy ball that can be picked up and…
Tom
  • 1,187
  • 2
  • 12
  • 21
2
votes
1 answer

Farseer 3.3 DebugViewXNA - Hooking it up

I have been trialling farseer 3.3 in XNA. For the life of me I cannot get DebugViewXNA to work. I have a World object with a couple of bodies in there. The bodies are fixed to polygonal models, so I need the debugviewXNA class to draw these for me…
Nick
  • 948
  • 2
  • 12
  • 24
2
votes
3 answers

How to start, where to learn ( Farseer )

Last few days I'm trying to start with farseer library, however i just can't get anything work properly. Documentation is very poor and there aren't many ( any? ) resources on the internet relating to 3.3.1 version. It's my first time trying to use…
Neomex
  • 1,650
  • 6
  • 24
  • 38
2
votes
1 answer

XNA & Farseer - Collision with a random edged shape

I have setup Farseer in my XNA project and have a player body which falls endlessly because of gravity. What I want the player to do is "land" on the random edged image I have in the window using the create shape from image function. How do I make…
Jamie
  • 21
  • 2
2
votes
1 answer

Farseer: Object not bouncing back from static objects

I have a dynamic circular object bounded inside four static rectangle objects. Consider a ball inside a box with the static rectangle objects simulating the walls of the box . IgnoreGravity is set to true for circular object. I want the circular…
Achint Mehta
  • 349
  • 1
  • 5
  • 14
2
votes
1 answer

XNA - Farseer Physics 3.5 - Collision Detection Issues - No/Zero Gravity - Space Game

So I'm working on a space game called Star Commander. The progress was going beautifully until I decided I needed to implement some sort of physics. I'm mainly going to be needing Farseer Physics for collision detection. Anyway, since it's a space…
1
2
3
10 11