0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

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

This commit is contained in:
liabru 2014-05-02 12:25:32 +01:00
parent d1f607edb8
commit 4e14169ac6

View file

@ -183,6 +183,8 @@ var Engine = {};
* @return engine
*/
Engine.update = function(engine, delta, correction) {
correction = correction || 1;
var world = engine.world,
timing = engine.timing,
broadphase = engine.broadphase[engine.broadphase.current],