fix: correct arg order

This commit is contained in:
cha0s 2019-04-13 12:46:26 -05:00
parent 5142fb7b1c
commit 6a26c5222c

View File

@ -49,11 +49,10 @@ export class Body extends AbstractBody {
constructor(shape) {
super(shape);
[
this.matterBody,
this.origin,
this.position,
] = this.constructor.bodyFromShape(shape);
const [body, position, origin] = this.constructor.bodyFromShape(shape);
this.matterBody = body;
this.origin = origin;
this.position = position;
this.constructor.associateBody(this.matterBody, this);
}