mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 01:16:35 +02:00
experimenting
This commit is contained in:
parent
41166c1a42
commit
dc30ca0210
1 changed files with 4 additions and 4 deletions
|
@ -290,12 +290,12 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
||||||
}
|
}
|
||||||
else if (simulatorID.isNull() && !(zeroSpeed && zeroSpin)) {
|
else if (simulatorID.isNull() && !(zeroSpeed && zeroSpin)) {
|
||||||
// The object is moving and nobody thinks they own the motion. set this Node as the simulator
|
// The object is moving and nobody thinks they own the motion. set this Node as the simulator
|
||||||
_entity->setSimulatorID(myNodeID);
|
// _entity->setSimulatorID(myNodeID);
|
||||||
properties.setSimulatorID(myNodeID);
|
// properties.setSimulatorID(myNodeID);
|
||||||
} else if (simulatorID == myNodeID && zeroSpeed && zeroSpin) {
|
} else if (simulatorID == myNodeID && zeroSpeed && zeroSpin) {
|
||||||
// we are the simulator and the object has stopped. give up "simulator" status
|
// we are the simulator and the object has stopped. give up "simulator" status
|
||||||
// _entity->setSimulatorID(QUuid());
|
_entity->setSimulatorID(QUuid());
|
||||||
// properties.setSimulatorID(QUuid());
|
properties.setSimulatorID(QUuid());
|
||||||
}
|
}
|
||||||
|
|
||||||
// RELIABLE_SEND_HACK: count number of updates for entities at rest so we can stop sending them after some limit.
|
// RELIABLE_SEND_HACK: count number of updates for entities at rest so we can stop sending them after some limit.
|
||||||
|
|
Loading…
Reference in a new issue