Fix physics example

This commit is contained in:
3demax 2025-04-14 20:56:49 -04:00
parent 56d06bdf32
commit 6d6e20b4ee

View file

@ -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