mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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
|
// 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
|
// considered to be the correct position for "now" which is likely in the future from when it actually
|
||||||
// was at that last known positition.
|
// was at that last known positition.
|
||||||
|
|
||||||
|
float skipTimeForward = (float)(now - _lastSimulated) / (float)(USECS_PER_SECOND);
|
||||||
|
qDebug() << "skipTimeForward:" << skipTimeForward;
|
||||||
|
simulateKinematicMotion(skipTimeForward);
|
||||||
|
//simulate(now);
|
||||||
_lastSimulated = now;
|
_lastSimulated = now;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue