diff --git a/src/spatial/2d.js b/src/spatial/2d.js index 7439859a..d2940f84 100644 --- a/src/spatial/2d.js +++ b/src/spatial/2d.js @@ -920,6 +920,10 @@ Crafty.c("2D", { this._origin.x = x; this._origin.y = y; + if (this._mbr) { + this._calculateMBR(); + } + this.trigger("OriginChanged"); return this; },