mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:28:37 +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;
|
btTransform worldTrans;
|
||||||
worldTrans.setOrigin(glmToBullet(_serverPosition));
|
worldTrans.setOrigin(glmToBullet(_serverPosition));
|
||||||
worldTrans.setRotation(glmToBullet(_serverRotation));
|
worldTrans.setRotation(glmToBullet(_serverRotation));
|
||||||
|
_body->setWorldTransform(worldTrans);
|
||||||
// no need to update velocities... should already be zero
|
// no need to update velocities... should already be zero
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue