Merge pull request #14165 from luiscuenca/fixSmallStep

Increase velocity increments when the avatar is really small.
This commit is contained in:
Anthony Thibault 2018-10-16 16:31:13 -07:00 committed by GitHub
commit cd3bb1fad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1942,7 +1942,7 @@ void MyAvatar::updateMotors() {
horizontalMotorTimescale = FLYING_MOTOR_TIMESCALE;
verticalMotorTimescale = FLYING_MOTOR_TIMESCALE;
} else {
horizontalMotorTimescale = WALKING_MOTOR_TIMESCALE;
horizontalMotorTimescale = WALKING_MOTOR_TIMESCALE * getSensorToWorldScale();
verticalMotorTimescale = INVALID_MOTOR_TIMESCALE;
}