I need to move a sprite to the mouse position, I used the game.physics.arcade.moveToPointer()
function, but only works with sprites
that have the body of type Phaser.Physics.Arcade
.
How do I use this function using a body of type Phaser.Physics.P2JS
? link