From 6d6e20b4ee6267d70641f762d0cd5b7cb94e50e2 Mon Sep 17 00:00:00 2001 From: 3demax <128981+3demax@users.noreply.github.com> Date: Mon, 14 Apr 2025 20:56:49 -0400 Subject: [PATCH] Fix physics example --- examples/physics/physac.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/physics/physac.py b/examples/physics/physac.py index e2ec815..1556f34 100644 --- a/examples/physics/physac.py +++ b/examples/physics/physac.py @@ -25,10 +25,10 @@ SetTargetFPS(60) while not WindowShouldClose(): # Update # ---------------------------------------------------------------------- - UpdatePhysics() # Update physics system if IsKeyPressed(KEY_R): # Reset physics system - ResetPhysics() + ClosePhysics() + InitPhysics() floor = CreatePhysicsBodyRectangle((SCREEN_WIDTH/2, SCREEN_HEIGHT), 500, 100, 10) floor.enabled = False