diff --git a/src/physics/arcade/StaticBody.js b/src/physics/arcade/StaticBody.js index 9392a88c0..66bf87de6 100644 --- a/src/physics/arcade/StaticBody.js +++ b/src/physics/arcade/StaticBody.js @@ -443,8 +443,14 @@ var StaticBody = new Class({ this.world.staticTree.remove(this); + this.position.x -= this.offset.x; + this.position.y -= this.offset.y; + this.offset.set(x, y); + this.position.x += this.offset.x; + this.position.y += this.offset.y; + this.updateCenter(); this.world.staticTree.insert(this);