Skip to content

Commit 2df1ac4

Browse files
authored
Update physac example (#168)
1 parent 67e6bf2 commit 2df1ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/physics/physac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
while not WindowShouldClose():
2626
# Update
2727
# ----------------------------------------------------------------------
28-
UpdatePhysics() # Update physics system
2928

3029
if IsKeyPressed(KEY_R): # Reset physics system
31-
ResetPhysics()
30+
ClosePhysics()
31+
InitPhysics()
3232

3333
floor = CreatePhysicsBodyRectangle((SCREEN_WIDTH/2, SCREEN_HEIGHT), 500, 100, 10)
3434
floor.enabled = False

0 commit comments

Comments
 (0)