Suspension simulation problem.

Discuss issues specific to the Flash/AS3 port of Box2D
Posts: 1
Joined: Sun Nov 04, 2012 5:51 am

Suspension simulation problem.

Postby b0xer23 » Sun Nov 04, 2012 6:03 am

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;

- 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? :? )?

Return to “Flash”

Who is online

Users browsing this forum: No registered users and 2 guests