C#/XNA port of the Box2D physics engine.
0
votes
1answer
39 views
Why is Farseer not working in Windows Phone 7/8?
I created a new Windows Phone Game (4.0) project in Visual Studio Express 2012 and added the Farseer project to the solution explorer. But adding a reference to the Farseer project is not working. I ...
2
votes
1answer
57 views
Farseer: Shooting a ball in a certain angle?
How can I shoot a ball in a certain angle? When I press the Space key, the ball should be shot in a 45 degree angle. How can I do that?
0
votes
0answers
36 views
Farseer: Difficulties with implementation of DebugView
I added the project "Farseer Physics Engine 3.3.1 HelloWorld XNA\DebugView XNA\DebugView XNA.csproj" to my solution explorer in Visual Studio. In addition, I added a reference to my project and the ...
0
votes
1answer
30 views
Farseer: RemoveBody is not working [closed]
I want to remove bodies after they touched the character(playerrect). But the bodies get not removed. I set a breakpoint in the following line but it doesn't get yellow:
...
1
vote
1answer
50 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
26 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
1answer
134 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 ...
-2
votes
1answer
44 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
54 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
81 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 ...
2
votes
0answers
70 views
Getting a uint color array from a portion of a Texture2D
I'm currently using the Farseer tools to create a body from a Texture2D. However, my texture is a spritesheet and I need to get the uint array containing the colors from a portion of the full ...
0
votes
0answers
40 views
Fixture position
I want to apply force in center of specific fixture (engine of ship build from more fixtures), but I can't find any position property.
I looked at samples and I found this:
World.QueryAABB(fixture ...
-4
votes
1answer
84 views
My 2d Shader in XNA falls apart the second I put it into Farseer [closed]
I wrote a simple light shader that I tested in a simple 2d spaceship shooter and it worked fine. Once I imported it into my friend's farseer project with rotatable shapes, it doesn't seem to work ...
2
votes
2answers
104 views
Texturing 2D vectorial terrain (or simply masking texture)
I have a procedurally generated terrain, as follows:
It is generated and then built using Farseer Physics, however I haven't found a way to create and apply a mask to texture it properly, I have ...
2
votes
2answers
92 views
Farseer Physics: How to create shape from Verticies?
As you can understand from the title, I'm pretty new to game development. I'm doing this for fun. Anyway here's my question. I have this Farseer Physics samples and I've been studying them for a few ...
2
votes
1answer
92 views
Developing an interactive book for Windows-Runtime
My three year old loves playing with the interactive books on our iPad, and I love playing with code and I love my Surface RT...
So I thought I'd try and make a basic animated book using WinRT, I've ...
2
votes
1answer
348 views
360+ degree rotation skips back to 0 degrees when using Math.Atan2(y, x)
I'm new to XNA and this is my first actual project, so forgive my noobness.
I'm using
jointAngle = System.Math.Atan2(RightStick.Y, RightStick.X);
in order to set an angle of a joint (farseer) so ...
1
vote
0answers
51 views
Farseer circle hangs where it's spawned
I'm currently trying to simply spawn a circle in Farseer. However, it's stuck wherever I spawn it! The game is updating fine, as I can see the circle spinning in place when I spawn it because of how I ...
5
votes
2answers
2k views
XNA C# Platformer - physics engine or tile based?
I would like to get some opinions on whether i should develop my game using a physics engine (farseer physics seems to be the best option) or follow the traditional tile-based method.
Quick ...
1
vote
1answer
115 views
Farseer Physics Samples and Krypton how to reference game
I'm sure this is totally simple and yes I am new at this.
I am trying to set up Krypton inside farseer.
1. create a new Krypton engine in my sub screen aka AdvancedDemo1 : PhysicsGameScreen, ...
0
votes
1answer
91 views
farseer physics xbox samples not working
I have downloaded a few of the sample projects from the official farseer physics website and i just cant get them to run on my xbox.
-My connection to the xbox is fine, other xbox projects debug ...
-1
votes
1answer
79 views
Farseer Physics Engine and the Ms-PL License [closed]
Am I able to produce code for a game which uses the Farseer engine and release my code under an open source license other than the Ms-PL?
My concern is with the following section from the license:
...
2
votes
2answers
90 views
Is there any quick and easy way to make all bodies visible with Farseer physics engine for XNA?
I just want to be able to see all my bodies on the screen for debugging purposes and i cant think of an easy way, for example i have make some edge fixtures with curved arcs attached and i just want ...
1
vote
1answer
106 views
How do I draw a texture to a MSTerrain object?
I'm using Farseer to make a game in XNA and I can't seem to figure this out.
I've decided to use MSTerrain for making my game's terrain because I wanted destructible terrain and MSTerrain seemed like ...
3
votes
3answers
397 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
146 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
276 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 ...
5
votes
1answer
780 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 ...
5
votes
1answer
463 views
Farseer Physics: Ways to create a Body?
I want to create something similar to this using farsser and Kinect:
https://vimeo.com/33500649
This is my implementation until now:
http://www.youtube.com/watch?v=GlIvJRhco4U
I have the outline ...
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 ...
1
vote
2answers
251 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!
2
votes
2answers
501 views
Farseer: Only allow the collision one time with the object
I have there serveral platforms. I would like to allow the player to collide only one time with the object! Hope you can help me
0
votes
1answer
308 views
Building a shape out of an Texture with Farseer
I have already looked at the Documentation on there Website, but the code provieded to create a shape out of an Texture is outdated for the newest version. The body is very simple so maybe i can do it ...
0
votes
1answer
268 views
Multiplayer Game Data Serialization Problems
I want to create a simple game that can be played with one to two player. I plan on using TCP sockets, Farseer Physics, XNA, a BinaryFormater and a Memorystream.
as far as i know i can't do the ...
1
vote
2answers
671 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 ...
-2
votes
1answer
306 views
Fix my Farseer collision detection code
The collision is not working correctly! The collision is in the "open-word" and not when it collides! Here my code:
Platform code(static):
body = BodyFactory.CreateRectangle(world, ...
0
votes
1answer
195 views
Farseer: ApplyForce problem
I just tried Farseer and everything is working great. My problem is, that on touch the player should get an force up. Although the touch event works well, the player did not get an force!
Here my ...
2
votes
1answer
343 views
Odd offset bug in Farseer/XNA/C#
So I'm using Farseer to create an immovable object:
[...]
private Body body;
public Immovable(World world, ContentManager c, String s, int posx, int posy, int w, int h, String user_data)
{
...
0
votes
0answers
76 views
Farseer physics not working
I have just started to port a load of projects from FPE2.x to FPE 3.3.1 and i am having some problems with all my physics.
This is a sample of what i am doing which demonstrates my problem
...
0
votes
1answer
1k views
How do I reset a game level
I have managed to implement a screen state system which I use to access the game. When the the character has collided with an enemy tile the game ends by going to a seperate game over screen. After ...
1
vote
0answers
140 views
Farseer Physics EndContact events don't fire for all registered delegates
Here's my situation:
I have several objects that contain a body and a fixture. They are set to sensor = true;
atmosphere = BodyFactory.CreateCircle(world, atmosphereRadius / Level.METER_IN_PIXELS, ...
0
votes
1answer
110 views
InvalidCastException in Farseer's raycasting when trying to use the built-in explosion class?
I'm trying to create an explosion at the point that two entities collide, but whenever explosion.Activate() is called, it causes an InvalidCastException to be thrown in Raycast(), on the line that ...
1
vote
1answer
151 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 ...
1
vote
0answers
207 views
Unusual Farseer Behaviour?
My basic implementation of a Farseer world has been behaving very strangely. It seems as though there is a very low maximum velocity, and collisions result in the small spheres involved clipping ...
1
vote
3answers
685 views
Unable to find good parameters for behavior of a puck in Farseer
EDIT:
I have tried all kinds of variations now. The last one was to adjust the linear velocity in each step: newVel = oldVel * 0.9f - all of this including your proposals kind of work, however in the ...
0
votes
1answer
580 views
Farseer DebugViewXNA: scaling problem
I'm trying to get into Farseer and XNA.
Before I do any real graphics, I want to use the Farseer debug view only.
The problem ist, that I don't really know which matrix to use and the other thing is ...
4
votes
3answers
546 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 ...
5
votes
3answers
708 views
Can I swap out Farseer physics fixtures at runtime?
I am working on a 2D side-scroller using Farseer Physics Engine v3.3.1.
In order to create a realistic physical skeleton for the player, I am using a method similar to the one explained here (See ...
1
vote
2answers
496 views
How can I implement a “boost pad” with Farseer/Box2D physics?
I'm trying to implement a boost pad in my XNA game using the Farseer Physics Engine. (This question applies to Box2D too, I would be happy to port working Box2D code to C#.)
By "boost pad", I mean an ...
