mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
tweak
This commit is contained in:
parent
83780296de
commit
54eac099b9
2 changed files with 7 additions and 4 deletions
|
@ -1795,4 +1795,6 @@ bool EntityItem::shouldSuppressEdits() const {
|
|||
// XXX
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -280,6 +280,11 @@ bool EntityMotionState::remoteSimulationOutOfSync(uint32_t simulationStep) {
|
|||
}
|
||||
|
||||
_lastStep = simulationStep;
|
||||
|
||||
if (_entity->shouldSuppressEdits()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (glm::length2(_serverVelocity) > 0.0f) {
|
||||
_serverVelocity += _serverAcceleration * dt;
|
||||
_serverVelocity *= powf(1.0f - _body->getLinearDamping(), dt);
|
||||
|
@ -291,10 +296,6 @@ bool EntityMotionState::remoteSimulationOutOfSync(uint32_t simulationStep) {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (_entity->shouldSuppressEdits()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Else we measure the error between current and extrapolated transform (according to expected behavior
|
||||
// of remote EntitySimulation) and return true if the error is significant.
|
||||
|
||||
|
|
Loading…
Reference in a new issue