mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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
|
// XXX
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -280,6 +280,11 @@ bool EntityMotionState::remoteSimulationOutOfSync(uint32_t simulationStep) {
|
||||||
}
|
}
|
||||||
|
|
||||||
_lastStep = simulationStep;
|
_lastStep = simulationStep;
|
||||||
|
|
||||||
|
if (_entity->shouldSuppressEdits()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (glm::length2(_serverVelocity) > 0.0f) {
|
if (glm::length2(_serverVelocity) > 0.0f) {
|
||||||
_serverVelocity += _serverAcceleration * dt;
|
_serverVelocity += _serverAcceleration * dt;
|
||||||
_serverVelocity *= powf(1.0f - _body->getLinearDamping(), dt);
|
_serverVelocity *= powf(1.0f - _body->getLinearDamping(), dt);
|
||||||
|
@ -291,10 +296,6 @@ bool EntityMotionState::remoteSimulationOutOfSync(uint32_t simulationStep) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_entity->shouldSuppressEdits()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Else we measure the error between current and extrapolated transform (according to expected behavior
|
// 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.
|
// of remote EntitySimulation) and return true if the error is significant.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue