mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 06:02:28 +02:00
don't bid for sim ownership of kinematic unless grabbed
This commit is contained in:
parent
227b99859d
commit
e546ef23a8
1 changed files with 2 additions and 1 deletions
|
@ -740,7 +740,8 @@ bool EntityMotionState::shouldSendBid() const {
|
|||
&& (_region == workload::Region::R1)
|
||||
&& _ownershipState != EntityMotionState::OwnershipState::Unownable
|
||||
&& glm::max(glm::max(VOLUNTEER_SIMULATION_PRIORITY, _bumpedPriority), _entity->getScriptSimulationPriority()) >= _entity->getSimulationPriority()
|
||||
&& !_entity->getLocked();
|
||||
&& !_entity->getLocked()
|
||||
&& (!_body->isStaticOrKinematicObject() || _entity->stillHasMyGrab());
|
||||
}
|
||||
|
||||
void EntityMotionState::setRigidBody(btRigidBody* body) {
|
||||
|
|
Loading…
Reference in a new issue