update local QueryAACube on deactivation

This commit is contained in:
Andrew Meadows 2019-09-17 15:05:37 -07:00
parent b53fbde089
commit 1119b9f29c

View file

@ -122,6 +122,13 @@ void EntityMotionState::handleDeactivation() {
_body->setWorldTransform(worldTrans);
// 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