remove redundant EntityMotionState::updateSendVelocities() call

This commit is contained in:
Andrew Meadows 2018-09-14 10:37:55 -07:00
parent 9073e1ade3
commit 9390687e2d

View file

@ -138,7 +138,6 @@ void PhysicalEntitySimulation::changeEntityInternal(EntityItemPointer entity) {
btRigidBody* body = motionState->getRigidBody();
if (body) {
body->forceActivationState(ISLAND_SLEEPING);
motionState->updateSendVelocities(); // has side-effect of zeroing entity velocities for inactive body
}
// send packet to remove ownership