mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
check for DIRTY_ROTATION bit when copying rotation
This commit is contained in:
parent
8523a96e2b
commit
2668ff6d0a
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ void ObjectMotionState::handleEasyChanges(uint32_t flags) {
|
|||
}
|
||||
worldTrans.setOrigin(glmToBullet(getObjectPosition()));
|
||||
_body->setWorldTransform(worldTrans);
|
||||
} else {
|
||||
} else if (flags & EntityItem::DIRTY_ROTATION) {
|
||||
btTransform worldTrans = _body->getWorldTransform();
|
||||
worldTrans.setRotation(glmToBullet(getObjectRotation()));
|
||||
_body->setWorldTransform(worldTrans);
|
||||
|
|
Loading…
Reference in a new issue