Drag Left to Right By Touch

Hi, in My game for movement i am using ‘touchstart’ and ‘touchend’.its working fine , But i want movement like drag left to right,player(Skater) want to move along with User finger.In unity we will do with Player’s x position relate with user touch move x direction like that is there any script in playcanvas?

Like this : by touch

Gamelink:
https://launch.playcanvas.com/783013?debug=true