Update physac example (#168)
This commit is contained in:
parent
67e6bf2405
commit
2df1ac470b
1 changed files with 2 additions and 2 deletions
|
@ -25,10 +25,10 @@ SetTargetFPS(60)
|
||||||
while not WindowShouldClose():
|
while not WindowShouldClose():
|
||||||
# Update
|
# Update
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
UpdatePhysics() # Update physics system
|
|
||||||
|
|
||||||
if IsKeyPressed(KEY_R): # Reset physics system
|
if IsKeyPressed(KEY_R): # Reset physics system
|
||||||
ResetPhysics()
|
ClosePhysics()
|
||||||
|
InitPhysics()
|
||||||
|
|
||||||
floor = CreatePhysicsBodyRectangle((SCREEN_WIDTH/2, SCREEN_HEIGHT), 500, 100, 10)
|
floor = CreatePhysicsBodyRectangle((SCREEN_WIDTH/2, SCREEN_HEIGHT), 500, 100, 10)
|
||||||
floor.enabled = False
|
floor.enabled = False
|
||||||
|
|
Reference in a new issue