This commit is contained in:
Seth Alves 2015-04-24 13:44:34 -07:00
parent 902e84c711
commit ad85837b5a
2 changed files with 4 additions and 4 deletions

View file

@ -54,7 +54,8 @@ public:
DIRTY_MOTION_TYPE = 0x0010,
DIRTY_SHAPE = 0x0020,
DIRTY_LIFETIME = 0x0040,
DIRTY_UPDATEABLE = 0x0080
DIRTY_UPDATEABLE = 0x0080,
DIRTY_TWEAK = 0x0100
};
DONT_ALLOW_INSTANTIATION // This class can not be instantiated directly

View file

@ -114,9 +114,7 @@ void EntityMotionState::setWorldTransform(const btTransform& worldTrans) {
_entity->setLastSimulated(usecTimestampNow());
bool isStill = (v == vec3(0.0f)) && (av == vec3(0.0f));
if (_entity->getSimulatorID().isNull() && !isStill) {
if (_entity->getSimulatorID().isNull() && isMoving()) {
// object is moving and has no owner. attempt to claim simulation ownership.
// setShouldClaimSimulationOwnership(true);
}
@ -342,6 +340,7 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
qCDebug(physics) << "EntityMotionState::sendUpdate()... calling queueEditEntityMessage()...";
#endif
qDebug() << "sending";
entityPacketSender->queueEditEntityMessage(PacketTypeEntityAddOrEdit, id, properties);
} else {
#ifdef WANT_DEBUG