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.enableLimit = true;
suspensionDef.motorSpeed = 3;
suspensionDef.maxMotorForce = 100;
- 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? )?