Player movement with touch


#1

i did player movement left and right with touch ,but player movement stuck sometimes.
https://launch.playcanvas.com/763628?debug=true
editor link:https://playcanvas.com/editor/scene/763628

i want better than this player movement , give me any suggestion.
thank you.


#2

I have a movement script that you can use or tweak at to your interests if you want I use it to run how the player moves in my game matrexball