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

how to pass from farseer vertices list to vertexpositioncolortexture data vertex

My issue started when i was doing the texture to vertices example (https://gamedev.stackexchange.com/questions/30050/building-a-shape-out-of-an-texture-with-farseer) then i pop up if its posible to pass this "farseer vertices" to vertex data that…
poker3
  • 21
  • 1
  • 4
0
votes
2 answers

Difficulties with Farseer documentation

I tried the "Texture to polygon" example in the Farseer documentation. https://farseerphysics.codeplex.com/documentation But I always get this error message in the following line: //Find the vertices that makes up the outline of the shape in the…
Leo
  • 267
  • 1
  • 4
  • 14
0
votes
1 answer

How can I create polygons in Farseer?

I always get many error messages when I want to create polygons in Farseer. 'FarseerPhysics.Common.Vertices' does not contain a definition for 'CreatePolygon' 'FarseerPhysics.Factories.BodyFactory' does not contain a definition for…
Leo
  • 267
  • 1
  • 4
  • 14
0
votes
1 answer

Farseer Physics Bodies In touch (in contact)

I am new to Farseer, developing a xna + Farseer physics game. There are multiple Physics bodies(square,circle, rectangle shapes) in the game, trying to findout all of the bodies in touch (touching each other), i can calculate based on the…
Yogesh
  • 1,206
  • 4
  • 22
  • 50
0
votes
1 answer

converting a Texture2d circle to Farseer circleBody

I may have asked a similar question before, but believe me, I have searched a lot on the web. I am very new to farseer and xna , and all I want to do is convert existing set of texture2d circles to farseer circleBody? Is there a way to do that…
mag443
  • 191
  • 1
  • 4
  • 12
0
votes
1 answer

PolygonShape is not updated by its body

I'm trying to define a polygon to be updated by a body bounded by a physical world. Here it goes my attempt: public Body _body; public Shape _shape; _primitiveBatch = new PrimitiveBatch(_game.GraphicsDevice); _shape = new PolygonShape(_vertices,…
Telmo
  • 361
  • 3
  • 18
0
votes
1 answer

Calculating collision force with AfterCollision/NormalImpulse is unreliable when IgnoreCCD = false?

I'm using Farseer Physics Engine 3.3.1 in a very simple XNA 4 test game. (Note: I'm also tagging this Box2D, because Farseer is a direct port of Box2D and I will happily accept Box2D answers that solve this problem.) In this game, I'm creating two…
Michael
  • 1,968
  • 4
  • 24
  • 40
0
votes
1 answer

Farseer Create Rectangel Width Height

In Farseer XNA4.0 C# Physics engine based on Box2D if i use BodyFactory.CreateRectangle(world, w, h, density, new Vector2(x, y)); method to create a body how can i get the width and height back from the body? currently im saving the width and height…
ColacX
  • 3,928
  • 6
  • 34
  • 36
0
votes
1 answer

Farseer - Particles just go thru another body

I am creating my maze like this: agentBody = BodyFactory.CreateBody(world, position); _agentBody.BodyType = BodyType.Dynamic; _agentBody.IgnoreGravity = true; _agentBody.Restitution = 0.1f; _agentBody.Friction = 1f; _offset =…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
0
votes
0 answers

Slight offset in time and distance

I am building a teaching platform for teaching basic Physics. From my experience in Flash development, I have met similar problems before. The game time is not the same as real world time. In which case, for example, the distance covered by a…
Felastine
  • 793
  • 2
  • 8
  • 18
0
votes
1 answer

Farseer - Particles doesn´t move/bounce accord to borders

I made my borders with this: class Maze { private Body _agentBody; private Sprite _box; private GameplayScreen _screen; private float _offset; public Maze(World world, GameplayScreen screen, Vector2…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
0
votes
1 answer

Toying around with Farseer Physics; the scaling is confusing me quite a bit

I've dropped Farseer into my project and quickly started binding some circles to my enemies (this is a top-down) using FixtureFactory.AttachCircle(...). What's weird is I'm using regular pixel values to determine the radius of the circle and it's…
inline
  • 695
  • 1
  • 7
  • 17
0
votes
1 answer

how to check if the player make a CLICK on a Body with farseer physics?

I need to know how I can check in Farseer Physics if a player/user clicks on a specific body, is this possible? Do I have to write my own methods?
gurehbgui
  • 14,236
  • 32
  • 106
  • 178
0
votes
1 answer

Farseer collisions

I am using farseer physics engine to detect collision between N boxes. One of them placed at bottom of the screen. Others appear when you click on the screen. They appear on a strictly first compartment at a certain height. And when they fall on a…
user1365794
0
votes
1 answer

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 http://pastebin.com/wNfPhJUT I can't workout what i'm doing…
harryovers
  • 3,087
  • 2
  • 34
  • 56
1 2 3
10
11