Tagged Questions
0
votes
0answers
11 views
Farseer: How can I remove a body?
I have many sensors(coins) in each level and I want to remove the sensors(coins) when the player rectangle(Mario) touches them. I check in OnCollision if Mario touches a coin, if he touches it, it ...
0
votes
1answer
20 views
Farseer: Difficulties with ContactListener
How can I register the ContactListener in XNA? In the box2d manual is written:
9.4 Contact Listener
...
At run-time you can create an instance of the listener and register it with ...
-3
votes
0answers
34 views
Farseer: Character jumps weird [closed]
I have a little problem with jumping. For example, the character(Mario) jumps from the top of a tile. The character is now in the air and not touching a tile. After that, he touches the right or left ...
3
votes
1answer
115 views
How do I make a tile passable in one direction only?
I want that my character can jump through some of the tiles, like Mario does in this video:
http://www.youtube.com/watch?v=zIPYzbNrNhc
In this video, Mario jumps up through orange platforms, but ...
-3
votes
0answers
35 views
Farseer: Difficulties with polygons [closed]
I want to create a polygon but I get many error messages. I don't know what to change.
What is wrong?
The size of my texture(polygonTexture) is 350x150 pixel. ...
-2
votes
1answer
34 views
Farseer: are you missing a using directive or an assembly reference?
I want to create a polygon in Farseer. I found an example in the documentation but it's not working because I get this error message:
The type or namespace name 'Vertices' could not be found (are you ...
0
votes
1answer
48 views
Farseer: Ball is not getting slower
The ball is not getting slower when it rolls over a straight platform. I added friction but that changed nothing, the ball still gets not slower. I want that the ball gets slower and slower and stops ...
0
votes
1answer
64 views
Farseer: Ball is not bouncing realistically
I created a ball that is rolling over platforms. When it falls from one platform to another, it should bounce just like in real life, but the ball keeps bouncing constantly and I don't know how to ...
1
vote
1answer
143 views
2D Physics Engine to Handle Shapes Composed of Multiple Densities XNA
The game I'm working on involves shapes that might be composed of multiple materials in a variety of ways. Let's just take for example a wooden rod with and sizable tip of iron or say a block composed ...
2
votes
1answer
270 views
Implementing a wheeled character controller
I'm trying to implement Boxycraft's character controller in XNA (with Farseer), as Bryan Dysmas did (minus the jumping part, yet).
My current implementation seems to sometimes glitch in between two ...
4
votes
1answer
749 views
Correct way to use Farseer Physics in XNA
I am using Farseer Physics for my 2D sidescroller game and I'm not sure how to proceed with it. I currently have a Sprite class (handles nothing but graphics), a GameObject class (contains specific ...
0
votes
0answers
132 views
Farseer non-colliding bodies affect eachother
I'm trying to use Farseer to make a tile engine, but bodies that are not colliding with a sprite are still having an effect on it.
In this image there is a single sprite(the green box) and a single ...
4
votes
3answers
534 views
IndexOutOfRangeException on World.Step after enabling/disabling a Farseer physics body?
Earlier, I posted a question asking how to swap fixtures on the fly in a 2D side-scroller using Farseer Physics Engine. The ultimate goal being that the player's physical body changes when the player ...
8
votes
3answers
2k views
How do you do AI path following within a 2d physics engine like farseer/box2d?
I'm in the process of moving a 2d top down game I've been working on into a proper rigid body physics engine like Farseer. Up until now, I had just hacked together my own physics code where needed.
...
3
votes
1answer
493 views
How to restrict paddle movement using Farseer Physics engine 3.2
I am new to using Farseer Physics Engine 3.2(FPE), so please bear with my questions. Also, since FPE 3.2 is based on Box2D, I have been reading Box2D manual and pieces of code scattered in samples to ...
2
votes
2answers
891 views
Farseer - Apply Impulse
I'm new to Farseer and have a simple question. The demos I went through didn't seem to demonstrate what I want. I would like to apply an impulse (not force) to an object at a specific position on that ...
7
votes
3answers
930 views
How to implement 2d explosions that will cause damage taking into account covers and distance?
How can I implement a 2D explosion in a way that it will cause less damage to characters that hide behind crates or other cover? Ideally damage will depend on the strength of the cover (e.g. metal ...
21
votes
6answers
2k views
Implementing a wrapping wire (like the Worms Ninja Rope) in a 2D physics engine
I've been trying out some rope-physics recently, and I've found that the "standard" solution - making a rope from a series of objects strung together with springs or joints - is unsatisfying. ...