mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 13:49:11 +02:00
update body gravity when proper dirty bits are set
This commit is contained in:
parent
e61470517c
commit
646661d037
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ void ObjectMotionState::handleEasyChanges(uint32_t flags) {
|
|||
|
||||
if (flags & EntityItem::DIRTY_LINEAR_VELOCITY) {
|
||||
_body->setLinearVelocity(glmToBullet(getObjectLinearVelocity()));
|
||||
_body->setGravity(glmToBullet(getObjectGravity()));
|
||||
}
|
||||
if (flags & EntityItem::DIRTY_ANGULAR_VELOCITY) {
|
||||
_body->setAngularVelocity(glmToBullet(getObjectAngularVelocity()));
|
||||
|
|
Loading…
Reference in a new issue