Browse Source

Make the initial physics timestep more stable;

bjorn 7 years ago
parent
commit
cb4f609a26
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/Physics/main.lua

+ 2 - 0
examples/Physics/main.lua

@@ -16,6 +16,8 @@ function lovr.load()
   end
 
   controllerBoxes = {}
+
+  lovr.timer.step() -- Reset the timer before the first update
 end
 
 function lovr.update(dt)