This project has moved. For the latest updates, please go here.

Constraint body to move in one way

Topics: User Forum
Sep 16, 2012 at 10:32 AM



I'm working on a project using Farseer Physics, but i'm block on an issue.

I've got a body, who can move freely, but I want to constraint a part of the move



For exemple, for the first image, I don't want the body to go on the left or the right

On the second example, i don't want it to go "up/left" or "down/right"

And of course on the third, I don't want it to go up or down.

This body can rotate and go anywhere but inertia make it "slide" and it's this effect that I want to delete.


I've tried to change the Inertia property but it's not really what I wanted


Thank for any suggestions

Sep 20, 2012 at 6:18 PM

This should help:

Sep 23, 2012 at 12:36 PM

Thank that's exactly what I was looking for.
Now I'll try to  find the corresponding code to use the logic with Farseer physics