Fix physics example
This commit is contained in:
parent
56d06bdf32
commit
6d6e20b4ee
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue