mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-15 21:36:59 +02:00
support for skipping forward on new edit packets from server
This commit is contained in:
parent
d9835701b0
commit
02c0700db3
1 changed files with 5 additions and 0 deletions
|
@ -560,6 +560,11 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
|
|||
// server (clock skew adjusted). By setting it to "now" we are saying that the last position is to be
|
||||
// considered to be the correct position for "now" which is likely in the future from when it actually
|
||||
// was at that last known positition.
|
||||
|
||||
float skipTimeForward = (float)(now - _lastSimulated) / (float)(USECS_PER_SECOND);
|
||||
qDebug() << "skipTimeForward:" << skipTimeForward;
|
||||
simulateKinematicMotion(skipTimeForward);
|
||||
//simulate(now);
|
||||
_lastSimulated = now;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue