From dee0eaa9f9a2a633f2c5969f0ac43ce9a254134f Mon Sep 17 00:00:00 2001 From: Bnenne Date: Tue, 24 Jun 2025 11:08:52 -0500 Subject: [PATCH] moved physics into its own class in physics.py --- world/physics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world/physics.py b/world/physics.py index 6a79570..796b0ab 100644 --- a/world/physics.py +++ b/world/physics.py @@ -89,7 +89,7 @@ class Physics: velocity_y = self.velocity[1] + self.acceleration[1] self.velocity = (velocity_x, velocity_y) - # # clamp velocity + # clamp velocity speed = math.sqrt(self.velocity[0] ** 2 + self.velocity[1] ** 2) if speed > MAX_VELOCITY: scale = MAX_VELOCITY / speed