don't zero kinematic velocity at end of sim ownership

This commit is contained in:
Andrew Meadows 2018-09-14 10:37:17 -07:00
parent 4378f5bf1c
commit 9073e1ade3

View file

@ -446,8 +446,9 @@ bool EntityMotionState::shouldSendUpdate(uint32_t simulationStep) {
void EntityMotionState::updateSendVelocities() {
if (!_body->isActive()) {
// make sure all derivatives are zero
clearObjectVelocities();
if (!_body->isKinematicObject()) {
clearObjectVelocities();
}
// we pretend we sent the inactive update for this object
_numInactiveUpdates = 1;
} else {