Fixed ragdolls accumulating a large movement value while being dragged (backported from commit a21d8d7)
This commit is contained in:
@@ -910,7 +910,7 @@ namespace Barotrauma
|
||||
targetLimb.pullJoint.WorldAnchorB = targetLimb.SimPosition - diff;
|
||||
targetLimb.pullJoint.MaxForce = 10000.0f;
|
||||
|
||||
target.AnimController.movement -= diff;
|
||||
target.AnimController.movement = -diff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user