i created a motorbike that consists of the following parts:
1.) the main chassis
2.) the 2 legs
3.) two "shock absorbers" that connect to both legs via a prismatic joint
4.) the two wheels that connect to the "shock absorbers" via a revolution joint
everything works fine but the bike somehow wobbles when its on the ground...
must be something to do with the prismatic joints still running even if they have already pushed the "shock absorber" to the upperLimit (0).. so, effectively, the bike jitters / slightly bounces off the ground because the prismatic joints constantly push themselves downwards even if they have already hit the upperLimit.
they DO NOT go past the upperLimit and the bike doesn't jitter when its on the air.. but the effects can be felt when the bike is on the ground, as i said, it vibrates and slightly bounces off the ground.
any solutions to this?
how my prismatic joint(s) are defined:
1.) the main chassis
2.) the 2 legs
3.) two "shock absorbers" that connect to both legs via a prismatic joint
4.) the two wheels that connect to the "shock absorbers" via a revolution joint
everything works fine but the bike somehow wobbles when its on the ground...
must be something to do with the prismatic joints still running even if they have already pushed the "shock absorber" to the upperLimit (0).. so, effectively, the bike jitters / slightly bounces off the ground because the prismatic joints constantly push themselves downwards even if they have already hit the upperLimit.
they DO NOT go past the upperLimit and the bike doesn't jitter when its on the air.. but the effects can be felt when the bike is on the ground, as i said, it vibrates and slightly bounces off the ground.
any solutions to this?
how my prismatic joint(s) are defined:
Code:
var pjd:b2PrismaticJointDef = new b2PrismaticJointDef();
pjd.Initialize(chassis, rightSA, rightSA.GetWorldCenter(), new b2Vec2(xAxisRatio, yAxisRatio));
pjd.lowerTranslation = MF.ptm(-5);
pjd.upperTranslation = 0;
pjd.enableLimit = true;
pjd.maxMotorForce = 15;
pjd.motorSpeed = 3;
pjd.enableMotor = true;
pjd.Initialize(chassis, rightSA, rightSA.GetWorldCenter(), new b2Vec2(xAxisRatio, yAxisRatio));
pjd.lowerTranslation = MF.ptm(-5);
pjd.upperTranslation = 0;
pjd.enableLimit = true;
pjd.maxMotorForce = 15;
pjd.motorSpeed = 3;
pjd.enableMotor = true;