Tagged Questions
3
votes
3answers
361 views
Moving a body in a specific direction using XNA with Farseer Physics
I have a custom polygon attached to a body, which looks like this:
What I am trying to accomplish is getting the body to move according to wherever the tip of the body is. So far this is what I've ...
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 ...
1
vote
2answers
248 views
Building a shape out of two rectangles
I would like to build a body with Farseer out of two rectangles so it looks like this:
I am a real beginner, so please describe it carefully.
Thanks in advance!
1
vote
2answers
647 views
How do I determine which side of the player has collided with an object?
I have some static bodies (platforms) and a dynamic body (the player) in my world. The collision between them works great, but I would like to know which side of the player (rectangle) collides with ...
1
vote
1answer
146 views
How to pin a body in case of collision in Box2D or Farseer?
I'm trying to get an understanding for the Box2D/Farseer physics engine by implementing a small air hockey simulation.
There, I have the problem that the CPU player attacks the puck, kicks it, but ...
2
votes
1answer
1k views
Farseer Physics collision detection vs intersection detection with sensors
I'm trying to make a game that uses Farseer physics engine as its main collision detection engine. I have a 2d circle body object that has a matching fixture (I used the CreatCircle method. I did not ...
4
votes
1answer
339 views
Making a multi-pieced rectangular breakable body with Farseer
Using Farseer 3.3.1 I want to create a rectangular BreakableBody with many pieces. Right now here is my code:
Vertices polygon = PolygonTools.CreateRectangle( 2.5f , 1.25f );
List<Vertices> ...
8
votes
3answers
766 views
Tiling Physics using Farseer
I'm having a problem with the Farseer Physics Engine, where in a tiled environment, my object will at times interact with corners of others objects, even if they align perfectly.
You can try it ...
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. ...