mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:27:04 +02:00
update local QueryAACube on deactivation
This commit is contained in:
parent
b53fbde089
commit
1119b9f29c
1 changed files with 7 additions and 0 deletions
|
@ -122,6 +122,13 @@ void EntityMotionState::handleDeactivation() {
|
||||||
_body->setWorldTransform(worldTrans);
|
_body->setWorldTransform(worldTrans);
|
||||||
// no need to update velocities... should already be zero
|
// no need to update velocities... should already be zero
|
||||||
}
|
}
|
||||||
|
if (!isLocallyOwned()) {
|
||||||
|
// HACK: To allow the ESS to move entities around in a kinematic way we had to remove the requirement that
|
||||||
|
// every moving+simulated entity has an authoritative simulation owner. As a result, we cannot rely
|
||||||
|
// on a simulation owner to update the QueryAACube on the entity-server. This HACK updates the local
|
||||||
|
// QueryAACube but the one on the ES will still be broken.
|
||||||
|
_entity->updateQueryAACube();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual
|
// virtual
|
||||||
|
|
Loading…
Reference in a new issue