diff --git a/src/physics/matter-js/MatterImage.js b/src/physics/matter-js/MatterImage.js index 184566e8d..309c877a2 100644 --- a/src/physics/matter-js/MatterImage.js +++ b/src/physics/matter-js/MatterImage.js @@ -4,7 +4,6 @@ * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ -var Bodies = require('./lib/factory/Bodies'); var Class = require('../../utils/Class'); var Components = require('./components'); var GameObject = require('../../gameobjects/GameObject'); @@ -119,7 +118,7 @@ var MatterImage = new Class({ } else { - this.setRectangle(this.width, this.height, options) + this.setRectangle(this.width, this.height, options); } this.setPosition(x, y); diff --git a/src/physics/matter-js/MatterSprite.js b/src/physics/matter-js/MatterSprite.js index e35acb2b8..f90e1cec3 100644 --- a/src/physics/matter-js/MatterSprite.js +++ b/src/physics/matter-js/MatterSprite.js @@ -5,7 +5,6 @@ */ var AnimationComponent = require('../../gameobjects/components/Animation'); -var Bodies = require('./lib/factory/Bodies'); var Class = require('../../utils/Class'); var Components = require('./components'); var GameObject = require('../../gameobjects/GameObject'); @@ -126,7 +125,7 @@ var MatterSprite = new Class({ } else { - this.setRectangle(this.width, this.height, options) + this.setRectangle(this.width, this.height, options); } this.setPosition(x, y);