actually use worldTrans

This commit is contained in:
Andrew Meadows 2017-03-10 18:30:56 -08:00
parent 9c9eb87925
commit bde2222dfd

View file

@ -108,6 +108,7 @@ void EntityMotionState::handleDeactivation() {
btTransform worldTrans;
worldTrans.setOrigin(glmToBullet(_serverPosition));
worldTrans.setRotation(glmToBullet(_serverRotation));
_body->setWorldTransform(worldTrans);
// no need to update velocities... should already be zero
}