Whats the best way to make a seesaw in Farseer?

Topics: User Forum
Jul 26, 2010 at 12: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 7:20 AM
Edited Jul 26, 2010 at 7: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 4:02 PM

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

Jul 26, 2010 at 8: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 9:35 PM

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