summaryrefslogtreecommitdiffhomepage
path: root/examples/web/physics/physics_friction.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/web/physics/physics_friction.c')
-rw-r--r--examples/web/physics/physics_friction.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/web/physics/physics_friction.c b/examples/web/physics/physics_friction.c
index 2b328a8..78353e6 100644
--- a/examples/web/physics/physics_friction.c
+++ b/examples/web/physics/physics_friction.c
@@ -115,6 +115,8 @@ void UpdateDrawFrame(void)
{
// Update
//----------------------------------------------------------------------------------
+ PhysicsStep();
+
if (IsKeyPressed('R')) // Reset physics input
{
// Reset dynamic physics bodies position, velocity and rotation