Hello everyone
I’m using Phaser 3 with matter physics
Is it possible to use ‘sprite move to another sprite’ on Matter.js?
From Arcade
I using
this.physics.moveToObject(Sprite1,Sprite2, 300);
but for Matter
it can’t use this.matter.moveToObject(Sprite1,Sprite2, 300);
any idea??? thank
or use
tween???
var tween = this.tweens.add({
targets: Sprite1,
x: Sprite2.x,
y: Sprite2.y ,
duration: 3000,
});
but I think it is not best way, Thank you very much