I tried to create a player object
export default class Player extends Phaser.Physics.Matter.Sprite {
constructor(data) {
let { scene, x, y, texture, frame } = data;
super(scene.matter.world, x, y, texture, frame);
this.scene.add.existing(this);
But then i need to move my character by mouse, not dragging him. Is there any solution for this?