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