mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-27 13:59:01 -05:00
changed correction to now be optional in Engine.update (defaults to 1)
This commit is contained in:
parent
d1f607edb8
commit
4e14169ac6
1 changed files with 2 additions and 0 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue