This project has moved and is read-only. For the latest updates, please go here.

Whats the best way to make a seesaw in Farseer?

Topics: User Forum
Jul 26, 2010 at 1:10 AM

right now i have a triangle which is static and i want to have a ramp on its tip on which you can roll on and it will tip. Any seggustions on how to achieve this?



Jul 26, 2010 at 8:20 AM
Edited Jul 26, 2010 at 8:20 AM

Put a long rectangle on top of the triangle and connect them with a RevoluteJoint. The revolutejoint must be in the center of the rectangle.

EDIT: Make sure you set Joint.CollideConnected = false;

Jul 26, 2010 at 5:02 PM

strange but i cant find the Joint.CollideConnected = false; value anywhere

Jul 26, 2010 at 9:50 PM

Sorry, that is for Farseer 3.

In Farseer 2 you need to use Collision Categories to prevent the two bodies from colliding. It is nicely detailed in the documentation.

Jul 26, 2010 at 10:35 PM

Thanks i figured it out after messing around with a few settings. works great now.