Kaynağa Gözat

fixed a bug in PrismaticJoint::setMotorEnabled where it ignored the argument passed

Bill Meltsner 15 yıl önce
ebeveyn
işleme
dd85250180

+ 1 - 1
src/modules/physics/box2d/PrismaticJoint.cpp

@@ -60,7 +60,7 @@ namespace box2d
 
 
 	void PrismaticJoint::setMotorEnabled(bool motor)
 	void PrismaticJoint::setMotorEnabled(bool motor)
 	{
 	{
-		return joint->EnableMotor(true);
+		return joint->EnableMotor(motor);
 	}
 	}
 
 
 	bool PrismaticJoint::isMotorEnabled() const
 	bool PrismaticJoint::isMotorEnabled() const