mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-13 10:38:48 +02:00
debug prints
This commit is contained in:
parent
cf6259c5d7
commit
05ef357854
1 changed files with 2 additions and 4 deletions
|
@ -215,10 +215,6 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
|||
if (_outgoingPacketFlags) {
|
||||
EntityItemProperties properties = _entity->getProperties();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (_outgoingPacketFlags & EntityItem::DIRTY_POSITION) {
|
||||
btTransform worldTrans = _body->getWorldTransform();
|
||||
_sentPosition = bulletToGLM(worldTrans.getOrigin());
|
||||
|
@ -263,10 +259,12 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
|||
QString simulatorID = _entity->getSimulatorID();
|
||||
if (simulatorID.isEmpty()) {
|
||||
// The object is moving and nobody thinks they own the motion. set this Node as the simulator
|
||||
qDebug() << "claiming simulator ownership";
|
||||
_entity->setSimulatorID(myNodeID);
|
||||
properties.setSimulatorID(myNodeID);
|
||||
} else if (simulatorID == myNodeID && _numNonMovingUpdates > 0) {
|
||||
// we are the simulator and the object has stopped. give up "simulator" status
|
||||
qDebug() << "releasing simulator ownership";
|
||||
_entity->setSimulatorID("");
|
||||
properties.setSimulatorID("");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue