mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 14:46:55 +02:00
if something is locked but in motion, make it kinematic rather than static
This commit is contained in:
parent
a9665d1a25
commit
3825830fac
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