From 9a60896a405ec6afc0e9f87e10de06bf7dc6c1e4 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Fri, 16 Jan 2015 14:24:50 -0800 Subject: [PATCH] fix double targets and freezing bullets --- libraries/physics/src/EntityMotionState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/physics/src/EntityMotionState.cpp b/libraries/physics/src/EntityMotionState.cpp index a15f8a9f51..c83d194f59 100644 --- a/libraries/physics/src/EntityMotionState.cpp +++ b/libraries/physics/src/EntityMotionState.cpp @@ -147,6 +147,9 @@ float EntityMotionState::computeMass(const ShapeInfo& shapeInfo) const { void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_t frame) { #ifdef USE_BULLET_PHYSICS + if (!_entity->isKnownID()) { + return; // never update entities that are unknown + } if (_outgoingPacketFlags) { EntityItemProperties properties = _entity->getProperties();