From 2df1ac470b02e770edfb9acc7b432f0c0ab0a581 Mon Sep 17 00:00:00 2001 From: Max Golubev <128981+3demax@users.noreply.github.com> Date: Sat, 3 May 2025 14:41:59 -0400 Subject: [PATCH] Update physac example (#168) --- 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