I am making a game for mobile devices with Phaser 3. I am stuck at implementing swipe mechanism. I want to swipe my character in any direction the user wants to. I also thought about doing it with hammer.js but couldn't incorporate it with Phaser. If you can integrate hammer.js with Phaser please enlighten me. I found some tuts online.
current X/Y - saved X/Y
, move character (maybe add velocity) based on delta.