by default, have a strong force keep the robot together, instead of floppy joints.

This commit is contained in:
Erwin Coumans
2016-08-17 10:30:50 -07:00
parent dce73f48ae
commit 7c9441c3f5

View File

@@ -696,7 +696,7 @@ void PhysicsServerCommandProcessor::createJointMotors(btMultiBody* mb)
if (supportsJointMotor(mb,mbLinkIndex))
{
float maxMotorImpulse = 0.f;
float maxMotorImpulse = 10000.f;
int dof = 0;
btScalar desiredVelocity = 0.f;
btMultiBodyJointMotor* motor = new btMultiBodyJointMotor(mb,mbLinkIndex,dof,desiredVelocity,maxMotorImpulse);