if something is locked but in motion, make it kinematic rather than static

This commit is contained in:
Seth Alves 2017-05-22 14:07:53 -07:00
parent a9665d1a25
commit 3825830fac

View file

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