Suspension simulation problem.

Hi! I'm using 2.1a version.
I need to create suspension for wheels for bike. I attached circle using Prismatic joint to the frame. Then I've attached wheel to this circle using Revolute joint.
I get a problem, when I'm dropping my bike on horizontal surface it newer comes to stability, it continues to tremble(vibrate).
This is setup for my suspension to make it work like springs:

Code: Select all

var suspensionDef:b2PrismaticJointDef=new b2PrismaticJointDef();
suspensionDef.Initialize(cart,rearSpring,rearSpring.GetWorldCenter(), new b2Vec2(-0.1,1));
suspensionDef.lowerTranslation= -0.3;
suspensionDef.upperTranslation= 0;
suspensionDef.enableLimit     = true;
suspensionDef.motorSpeed = 3;
suspensionDef.maxMotorForce = 100;
suspensionDef.enableMotor=true;

Questions:
- Is there some better way to simulate suspension springs?
- How can I make Prismatic joint not to respond to small forces applied to it(this should solve trembling, right? 😕 )?

Original thread: https://box2d.org/forum/viewtopic.php?t=8906