mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 14:59:47 +02:00
mess with debugging prints
This commit is contained in:
parent
9c2fec36fd
commit
396f6b1987
4 changed files with 9 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
|||
#include "EntityItem.h"
|
||||
|
||||
|
||||
#define WANT_DEBUG 1
|
||||
|
||||
void EntityEditPacketSender::adjustEditPacketForClockSkew(PacketType type,
|
||||
unsigned char* editBuffer, size_t length, int clockSkew) {
|
||||
|
||||
|
|
|
@ -680,6 +680,7 @@ void EntityItem::simulate(const quint64& now) {
|
|||
#ifdef WANT_DEBUG
|
||||
qCDebug(entities) << "********** EntityItem::simulate()";
|
||||
qCDebug(entities) << " entity ID=" << getEntityItemID();
|
||||
qCDebug(entities) << " simulator ID=" << getSimulatorID();
|
||||
qCDebug(entities) << " now=" << now;
|
||||
qCDebug(entities) << " _lastSimulated=" << _lastSimulated;
|
||||
qCDebug(entities) << " timeElapsed=" << timeElapsed;
|
||||
|
@ -1197,6 +1198,6 @@ void EntityItem::updateLifetime(float value) {
|
|||
void EntityItem::updateSimulatorID(QString value) {
|
||||
if (_simulatorID != value) {
|
||||
_simulatorID = value;
|
||||
_dirtyFlags |= EntityItem::DIRTY_MOTION_TYPE;
|
||||
_dirtyFlags |= EntityItem::DIRTY_UPDATEABLE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -343,6 +343,7 @@ inline QDebug operator<<(QDebug debug, const EntityItemProperties& properties) {
|
|||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, EmitStrength, emitStrength, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, LocalGravity, localGravity, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, ParticleRadius, particleRadius, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, SimulatorID, simulatorID, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, MarketplaceID, marketplaceID, "");
|
||||
|
||||
debug << " last edited:" << properties.getLastEdited() << "\n";
|
||||
|
|
|
@ -219,6 +219,10 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
|
|||
if (_outgoingPacketFlags) {
|
||||
EntityItemProperties properties = _entity->getProperties();
|
||||
|
||||
// if (_outgoingPacketFlags & EntityItem::DIRTY_UPDATEABLE) {
|
||||
// properties.setSimulatorID(_entity->getSimulatorID());
|
||||
// }
|
||||
|
||||
if (_outgoingPacketFlags & EntityItem::DIRTY_POSITION) {
|
||||
btTransform worldTrans = _body->getWorldTransform();
|
||||
_sentPosition = bulletToGLM(worldTrans.getOrigin());
|
||||
|
|
Loading…
Reference in a new issue