mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
minor cleanup
This commit is contained in:
parent
6733767d8b
commit
049fe4abee
1 changed files with 1 additions and 2 deletions
|
@ -125,7 +125,7 @@ MyAvatar::MyAvatar(RigPointer rig) :
|
|||
AVATAR_FRAME_TYPE = recording::Frame::registerFrameType(HEADER_NAME);
|
||||
});
|
||||
|
||||
// FIXME how to deal with driving multiple avatars locally?
|
||||
// FIXME how to deal with driving multiple avatars locally?
|
||||
Frame::registerFrameHandler(AVATAR_FRAME_TYPE, [this](Frame::ConstPointer frame) {
|
||||
qDebug() << "Playback of avatar frame length: " << frame->data.size();
|
||||
avatarStateFromFrame(frame->data, this);
|
||||
|
@ -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