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:
Brad Hefta-Gaub 2017-05-25 08:32:30 -07:00 committed by GitHub
commit 23af6294ab

View file

@ -186,6 +186,9 @@ PhysicsMotionType EntityMotionState::computePhysicsMotionType() const {
}
if (_entity->getLocked()) {
if (_entity->isMoving()) {
return MOTION_TYPE_KINEMATIC;
}
return MOTION_TYPE_STATIC;
}