mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 14:30:35 +02:00
minor cleanup
This commit is contained in:
parent
6733767d8b
commit
049fe4abee
1 changed files with 1 additions and 2 deletions
|
@ -363,7 +363,6 @@ void MyAvatar::updateHMDFollowVelocity() {
|
|||
bool avatarIsMoving = glm::length(_velocity - _followVelocity) > FOLLOW_THRESHOLD_SPEED;
|
||||
bool shouldFollow = hmdIsAtRest || avatarIsMoving;
|
||||
|
||||
// linear part
|
||||
_followOffsetDistance = glm::length(offset);
|
||||
if (_followOffsetDistance < FOLLOW_MIN_DISTANCE) {
|
||||
// close enough
|
||||
|
|
Loading…
Reference in a new issue