bugfix concernementmapitem this.constraint
This commit is contained in:
parent
2837705a38
commit
77640c9d16
@ -3022,7 +3022,9 @@ export default {
|
|||||||
x: (this.canvas.width - this.cartouch_width) / 2,
|
x: (this.canvas.width - this.cartouch_width) / 2,
|
||||||
y: this.canvas.height / 2
|
y: this.canvas.height / 2
|
||||||
};
|
};
|
||||||
this.constraint.pointA = this.pos;
|
if (this.constraint) {
|
||||||
|
this.constraint.pointA = this.pos;
|
||||||
|
}
|
||||||
console.log('resetMapItemPosition', this.cartouch_width, this.pos);
|
console.log('resetMapItemPosition', this.cartouch_width, this.pos);
|
||||||
Matter.Body.setPosition(this.body, this.pos);
|
Matter.Body.setPosition(this.body, this.pos);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user