fix: scale position

This commit is contained in:
cha0s 2019-04-13 12:46:36 -05:00
parent 6a26c5222c
commit 3d20f0310c

View File

@ -116,7 +116,7 @@ export class Body extends AbstractBody {
get position() {
const {x, y} = this.matterBody.position;
return Vector.scale(Vector.sub([x, y], this.origin), SCALE);
return Vector.sub(Vector.scale([x, y], SCALE), this.origin);
}
set position(position) {