0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -05:00

fixed Demo.reset

This commit is contained in:
liabru 2014-05-01 13:44:44 +01:00
parent 4af6c1c64e
commit 3967608d7c

View file

@ -1023,6 +1023,10 @@
// reset id pool // reset id pool
Common._nextId = 0; Common._nextId = 0;
// reset mouse offset
_engine.input.mouse.offset.x = 0;
_engine.input.mouse.offset.y = 0;
_engine.enableSleeping = false; _engine.enableSleeping = false;
_engine.world.gravity.y = 1; _engine.world.gravity.y = 1;
@ -1039,6 +1043,7 @@
var renderOptions = _engine.render.options; var renderOptions = _engine.render.options;
renderOptions.wireframes = true; renderOptions.wireframes = true;
renderOptions.hasBounds = false;
renderOptions.showDebug = false; renderOptions.showDebug = false;
renderOptions.showBroadphase = false; renderOptions.showBroadphase = false;
renderOptions.showBounds = false; renderOptions.showBounds = false;