mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 01:06:25 +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);
|
direction = (zSpeed * forward) + (xSpeed * right);
|
||||||
// Normalize direction.
|
// Normalize direction.
|
||||||
direction /= glm::length(direction);
|
direction /= glm::length(direction);
|
||||||
float scale = scaleSpeedByDirection(direction, _walkSpeed.get(), _walkBackwardSpeed.get());
|
return getSensorToWorldScale() * direction * _sprintSpeed.get();
|
||||||
return getSensorToWorldScale() * scale * direction;
|
|
||||||
} else {
|
} else {
|
||||||
return Vectors::ZERO;
|
return Vectors::ZERO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue