reproduce torsion bar

Topics: Developer Forum
Mar 16, 2011 at 1:18 AM

Hi,

 I'm a newbie with farseer engine and I'm having difficulty reproducing this old example ( http://www.farseergames.com/storage/farseerphysics/Manual2.1.htm#_Toc213068500 ).

Playing with joints, I wrote something like this:

tb = FixtureFactory.CreateRectangle(_world, 10.4f, 1.3f, 0.3f, new Vector2(-20, 10)); //create dynamic rectangle
tb.Body.BodyType = BodyType.Dynamic;
var revolutejoint = JointFactory.CreateFixedRevoluteJoint(_world, tb.Body, new Vector2(-5.2f, 0), new Vector2(-25.2f, 10));
            
var anglejoint = JointFactory.CreateFixedAngleJoint(_world, tb.Body); //angle joint
anglejoint.TargetAngle = 0.0f;
anglejoint.Softness = 0.85f;

But my rectangle isn't as "elastic" as the one in the example. Can you give me some suggestions? Is there some magic property or I should manage it with custom code?

Thanks in advance.