mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
Clean up comments in MyAvatar.cpp
This commit is contained in:
parent
4d2ee07512
commit
e1cbb187cd
1 changed files with 1 additions and 2 deletions
|
@ -3308,8 +3308,7 @@ glm::vec3 MyAvatar::scaleMotorSpeed(const glm::vec3 forward, const glm::vec3 rig
|
|||
direction = (zSpeed * forward) + (xSpeed * right);
|
||||
// Normalize direction.
|
||||
direction /= glm::length(direction);
|
||||
float scale = scaleSpeedByDirection(direction, _walkSpeed.get(), _walkBackwardSpeed.get());
|
||||
return getSensorToWorldScale() * scale * direction;
|
||||
return getSensorToWorldScale() * direction * _sprintSpeed.get();
|
||||
} else {
|
||||
return Vectors::ZERO;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue