0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-17 12:42:17 -05:00

fixed: changed correction to now be optional in Engine.update (defaults to 1)

This commit is contained in:
liabru 2014-05-02 12:53:44 +01:00
parent 4e14169ac6
commit 2fad14336c

View file

@ -183,7 +183,7 @@ var Engine = {};
* @return engine * @return engine
*/ */
Engine.update = function(engine, delta, correction) { Engine.update = function(engine, delta, correction) {
correction = correction || 1; correction = (typeof correction !== 'undefined') ? correction : 1;
var world = engine.world, var world = engine.world,
timing = engine.timing, timing = engine.timing,