3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-30 00:43:09 +02:00

debugging stutter

This commit is contained in:
ZappoMan 2015-01-22 13:31:59 -08:00
parent 838a549abe
commit c6ad1462e6

View file

@ -160,10 +160,12 @@ 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());
properties.setPosition(_sentPosition + ObjectMotionState::getWorldOffset());
_sentRotation = bulletToGLM(worldTrans.getRotation());
properties.setRotation(_sentRotation);
}