mirror of
https://github.com/wassname/rl_2d_walker.js.git
synced 2026-09-09 11:33:20 +08:00
stronger
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user