Fixed ragdoll dropping away from the collider if it's freezed while swimming (e.g. if a client disconnects when in water)
This commit is contained in:
@@ -47,6 +47,7 @@ namespace Barotrauma
|
|||||||
frozen = value;
|
frozen = value;
|
||||||
|
|
||||||
Collider.PhysEnabled = !frozen;
|
Collider.PhysEnabled = !frozen;
|
||||||
|
if (frozen && MainLimb != null) MainLimb.pullJoint.WorldAnchorB = MainLimb.SimPosition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user