This commit is contained in:
wassname
2018-11-26 06:42:19 +08:00
parent 59580691bf
commit d5c6bc2990
+1 -1
View File
@@ -312,7 +312,7 @@ Walker.prototype.simulationStep = function (motorSpeeds) {
for(var k = 0; k < this.joints.length; k++) {
// var oldSpeed = this.joints[k].GetMotorSpeed()
// this.joints[k].SetMotorSpeed(oldSpeed + motorSpeeds[k]/10); // action can range from -3 to 3, radians per second
this.joints[k].SetMotorSpeed(motorSpeeds[k]*3); // action can range from -3 to 3, radians per second
this.joints[k].SetMotorSpeed(motorSpeeds[k]*90); // action can range from -3 to 3, radians per second
}
var oldmax = this.max_distance;
var distance = this.torso.upper_torso.GetPosition().x;