mirror of
https://github.com/overte-org/overte.git
synced 2025-04-10 19:29:07 +02:00
Merge pull request #10521 from sethalves/fix-locked-in-motion
if something is locked but in motion, make it kinematic rather than static
This commit is contained in:
commit
23af6294ab
1 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,9 @@ PhysicsMotionType EntityMotionState::computePhysicsMotionType() const {
|
|||
}
|
||||
|
||||
if (_entity->getLocked()) {
|
||||
if (_entity->isMoving()) {
|
||||
return MOTION_TYPE_KINEMATIC;
|
||||
}
|
||||
return MOTION_TYPE_STATIC;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue