fix: correct arg order
This commit is contained in:
parent
5142fb7b1c
commit
6a26c5222c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user