From 5742b4613e1c6cba644476bda9fa52d5286421ef Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 11 Mar 2026 13:08:21 -0400 Subject: [PATCH] changed the slack value for position correction to a reasonable number lmao --- rigidbody.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigidbody.py b/rigidbody.py index 46ce3f7..23eeb1c 100644 --- a/rigidbody.py +++ b/rigidbody.py @@ -49,7 +49,7 @@ class PhysicsSystem: self.resolve_collision(a, b, collision) def resolve_collision(self, a: RigidBody, b: RigidBody, collision: ColliderContact) -> None: - SLACK=9000 + SLACK=0.2 correction = collision.penetration / (a.inv_mass + b.inv_mass) * SLACK * collision.normal if a.mass != 0.0: