mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
actually use worldTrans
This commit is contained in:
parent
9c9eb87925
commit
bde2222dfd
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue