summaryrefslogtreecommitdiffhomepage
path: root/examples/web/physics/physics_movement.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-01-30 17:58:40 +0100
committerRay <[email protected]>2020-01-30 17:58:40 +0100
commitc4e5184fb9788128d66f8f8a36885cd36dbf74f4 (patch)
tree64758ba53edbd11dbdda867da37d487f7903b16e /examples/web/physics/physics_movement.c
parent6af9c72f361c250c5f4072d5ae3dd257a3f9b435 (diff)
downloadraylib.com-c4e5184fb9788128d66f8f8a36885cd36dbf74f4.tar.gz
raylib.com-c4e5184fb9788128d66f8f8a36885cd36dbf74f4.zip
Review physics examples to work on single-thread
Diffstat (limited to 'examples/web/physics/physics_movement.c')
-rw-r--r--examples/web/physics/physics_movement.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/web/physics/physics_movement.c b/examples/web/physics/physics_movement.c
index d7a2f7d..6c90f24 100644
--- a/examples/web/physics/physics_movement.c
+++ b/examples/web/physics/physics_movement.c
@@ -107,6 +107,8 @@ void UpdateDrawFrame(void)
{
// Update
//----------------------------------------------------------------------------------
+ PhysicsStep();
+
if (IsKeyPressed('R')) // Reset physics input
{
// Reset movement physics body position, velocity and rotation