Fixed ragdoll collision categories not being updated when CheckDistFromCollider re-enables limb collisions. Fixes #508
This commit is contained in:
@@ -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
|
//set the position of the ragdoll to make sure limbs don't get stuck inside walls when re-enabling collisions
|
||||||
SetPosition(Collider.SimPosition, true);
|
SetPosition(Collider.SimPosition, true);
|
||||||
collisionsDisabled = false;
|
collisionsDisabled = false;
|
||||||
|
//force collision categories to be updated
|
||||||
|
prevCollisionCategory = Category.None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user