Fixed ragdoll collision categories not being updated when CheckDistFromCollider re-enables limb collisions. Fixes #508

This commit is contained in:
Joonas Rikkonen
2018-07-22 16:00:32 +03:00
parent 9880a74218
commit 5ebfde72de

View File

@@ -1265,6 +1265,8 @@ namespace Barotrauma
//set the position of the ragdoll to make sure limbs don't get stuck inside walls when re-enabling collisions
SetPosition(Collider.SimPosition, true);
collisionsDisabled = false;
//force collision categories to be updated
prevCollisionCategory = Category.None;
}
}