fix double targets and freezing bullets
Showing the changes to libraries/physics/src/EntityMotionState.cpp (1 of 1 file). Show all
Unified · Split
| @@ -163,6 +163,9 @@ float EntityMotionState::computeMass(const ShapeInfo& shapeInfo) const { · 162 unmodified lines | |||
| 163 | 163 | ||
| 164 | void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_t frame) { | 164 | void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_t frame) { |
| 165 | #ifdef USE_BULLET_PHYSICS | 165 | #ifdef USE_BULLET_PHYSICS |
| 166 | if (!_entity->isKnownID()) { | ||
| 167 | return; // never update entities that are unknown | ||
| 168 | } | ||
| 166 | if (_outgoingPacketFlags) { | 169 | if (_outgoingPacketFlags) { |
| 167 | EntityItemProperties properties = _entity->getProperties(); | 170 | EntityItemProperties properties = _entity->getProperties(); |
| 168 | 171 | ||