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

Jumping with Farseer

I have a Player class that contains a physics body represented by a sphere, and I want to be able to tell if the player is on the ground, on a wall, or in the air. So far I have a bool IsOnGround that I set with these event handlers for the physics…
einsteinsci
  • 1,137
  • 1
  • 8
  • 22
0
votes
1 answer

Is there a possibility of storing Box2D/Farseer Body object without World object?

I need to read data of a Body, but I don't have World object yet. This Body is needed only to store informations about it. Do I have to have a dedicated World object for that?
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
0 answers

Falling side detection in XNA

I want to make a small app in XNA & Farseer. Basically, I have a sprite (a crate). Every side of the crate has a different color: RED, GREEN, BLUE, YELLOW. I throw the crate. I want to detect on which side the crate falls. I want the app to tell me…
E B
  • 59
  • 1
  • 8
0
votes
1 answer

Why does Box2D/Farseer EdgeShape have 4 vertices defined?

When you create a Farseer (or Box2D) edge Fixture you write: FixtureFactory.AttachEdge(start, end, bodyToAttachTheFixtureTo); Which makes sense - you need start and end point to define an edge. What bothers me is when you want to read the Fixture.…
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
1 answer

How to determine if Box2D fixture or shape is solid?

I think it is very simple to do but somehow I cannot find the way to do it. I want to draw selected fixtures and I don't really know if they should be filled or not - there is nothing like Fixture.IsSolid or Shape.IsSolid. I actually do it in…
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
1 answer

Simulating fragment of the world in Box2D/Farseer

I want to add turn physics on button in my game editor, something similar to Havoc button in TES Construction Set (something like this: http://youtu.be/6RzxXWiqb8M?t=7m40s). It's job would be to make the objects I've placed fall into desired natural…
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
1 answer

Farseer and double precision

I've been searching around the internet for several hours to find some Farseer implementation which uses double precision, no results. My game is going to have big, open world and I need that precision much. Where to find such a Farseer…
Michał
  • 2,202
  • 2
  • 17
  • 33
0
votes
1 answer

Farseer physics creates duplicate Body ID

Hello! I use this snippet to generate a Body and add to it the World. I add three bodies at program startup, which get correct BodyID. But when I attempt to add a body during runtime, it creates the body, but with the BodyID of 0, which then affects…
Vlatom
  • 71
  • 4
0
votes
2 answers

The property or indexer 'FarseerPhysics.Dynamics.Body.IsSensor' cannot be used in this context because it lacks the get accessor

Circle2.IsSensor = Circle1.IsSensor; The property or indexer 'FarseerPhysics.Dynamics.Body.IsSensor' cannot be used in this context because it lacks the get accessor I always get this error message. What is wrong? What should I change?
Leo
  • 267
  • 1
  • 4
  • 14
0
votes
0 answers

Simple leg animation in Farseer Physics

I'm using XNA 4.0 with Farseer Physics 3.5 and would like to do a walk animation like seen in the game "Ibb and Obb" http://www.youtube.com/watch?v=2iif636QAcc. However there are many different animation when they're changing direction, standing…
Oskar Eriksson
  • 845
  • 1
  • 9
  • 28
0
votes
1 answer

Fixed Revolute Joint in farseer 3.5

Hi I'm currently new in farseer physics engine, anyway, I have read tutorial about farseer 3.31 here http://roy-t.nl/index.php/2012/09/06/farseer-physics-3-3-1-and-xna-joints/ in the tutorial he's trying to attach/join paddle body to world…
Aldy syahdeini
  • 349
  • 1
  • 4
  • 16
0
votes
1 answer

how to make texture2d from just point array.(XNA, Farseer Physics Engine)

I use Farseer Physics Engine for pump simulation. In there Example, they always use texture2d format. But that pump shape is given just Point(x,y) Array. I want to make polygon or texture2d from that point array. PolygonTools.CreatePolygon method…
0
votes
1 answer

Farseer Physics - After Collision

I have tried using Farseer Physics' OnSeperation event handler, but it's way too sensitive. I want it to wait for the whole off my player's body to leave the area (I'm using an body as an sensor.) not just a small part of it.
0
votes
1 answer

Farseer Physics 3.5 Bayazit Algorithm/Decomposer

How do I get to the BayazitDecomposer in XNA with Farseer Physics? I am trying to convert my texture to a body. It should be BayazitDecomposer.ConvexPartion(verticies); But that doesn't exist in Farseer Physics 3.5 I was wondering if anybody knew…
0
votes
1 answer

Apply gravity to individual objects in Farseer Physics

I'm developing a platformer game with C# XNA and Farseer where the player should be able to swap gravity and run on the roof. Other objects affected by gravity will be there as well. Is there any way I can control the gravity individually for each…
Oskar Eriksson
  • 845
  • 1
  • 9
  • 28