diff --git a/ml_prm/README.md b/ml_prm/README.md index 6cea7e2..ba900d3 100644 --- a/ml_prm/README.md +++ b/ml_prm/README.md @@ -28,7 +28,7 @@ Optional mod's settings with [BTKUILib](https://github.com/BTK-Development/BTKUI * Note: Limited according to world's fly multiplier. * Note: Forcibly set to `1.0` in worlds that don't allow flight. * **Movement drag:** movement resistance; `2.0` by default. - * Note: Forcibly set to `0.0` in worlds that don't allow flight. + * Note: Forcibly set to `1.0` in worlds that don't allow flight. * **Angular movement drag:** angular movement resistance; `2.0` by default. * **Recover delay:** time delay for enabled `Auto recover` in seconds; `3.0` by default. * **Reset settings:** resets mod settings to default. diff --git a/ml_prm/RagdollController.cs b/ml_prm/RagdollController.cs index f5037dc..35f56cd 100644 --- a/ml_prm/RagdollController.cs +++ b/ml_prm/RagdollController.cs @@ -240,7 +240,7 @@ internal void OnAvatarSetup() m_rigidBodies.Add(l_body); l_body.isKinematic = true; l_body.angularDrag = Settings.AngularDrag; - l_body.drag = Settings.MovementDrag; + l_body.drag = (Utils.IsWorldSafe() ? Settings.MovementDrag : 1f); l_body.useGravity = (!Utils.IsWorldSafe() || Settings.Gravity); l_body.collisionDetectionMode = CollisionDetectionMode.ContinuousDynamic; } @@ -337,7 +337,7 @@ void OnMovementDragChange(float p_value) { if(m_avatarReady) { - float l_drag = (Utils.IsWorldSafe() ? p_value : 0f); + float l_drag = (Utils.IsWorldSafe() ? p_value : 1f); foreach(Rigidbody l_body in m_rigidBodies) { l_body.drag = l_drag;