physics.moveto don't take collision into account

Hi,

I used this.scene.physics.moveTo(this, x, y, 600); to move the enemy object to player position. But all the enemy come over each other as there in figure.
Screenshot 2022-04-25 202613

For enemy collider, I had used this this.physics.world.addCollider(this.enemies, this.enemies);

Used this, but didn’t work
if (distance < 64 * 4) { this.setVelocity(0, 0); }

Thanks for any help!

This is difficult to prevent without some kind of pathfinding. See