mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 19:47:49 +02:00
try skipping 2 rather than 3
This commit is contained in:
parent
1ef26d39eb
commit
0d0e0925e5
1 changed files with 8 additions and 9 deletions
|
@ -222,21 +222,20 @@ void AvatarActionHold::doKinematicUpdate(float deltaTimeStep) {
|
||||||
// of the most recent.
|
// of the most recent.
|
||||||
//
|
//
|
||||||
// if _measuredLinearVelocitiesIndex is
|
// if _measuredLinearVelocitiesIndex is
|
||||||
// 0 -- ignore i of 3 4 5
|
// 0 -- ignore i of 4 5
|
||||||
// 1 -- ignore i of 4 5 0
|
// 1 -- ignore i of 5 0
|
||||||
// 2 -- ignore i of 5 0 1
|
// 2 -- ignore i of 0 1
|
||||||
// 3 -- ignore i of 0 1 2
|
// 3 -- ignore i of 1 2
|
||||||
// 4 -- ignore i of 1 2 3
|
// 4 -- ignore i of 2 3
|
||||||
// 5 -- ignore i of 2 3 4
|
// 5 -- ignore i of 3 4
|
||||||
if ((i + 1) % 6 == _measuredLinearVelocitiesIndex ||
|
if ((i + 1) % 6 == _measuredLinearVelocitiesIndex ||
|
||||||
(i + 2) % 6 == _measuredLinearVelocitiesIndex ||
|
(i + 2) % 6 == _measuredLinearVelocitiesIndex) {
|
||||||
(i + 3) % 6 == _measuredLinearVelocitiesIndex) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
measuredLinearVelocity += _measuredLinearVelocities[i];
|
measuredLinearVelocity += _measuredLinearVelocities[i];
|
||||||
}
|
}
|
||||||
measuredLinearVelocity /= (float)(AvatarActionHold::velocitySmoothFrames - 3);
|
measuredLinearVelocity /= (float)(AvatarActionHold::velocitySmoothFrames - 2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue