In my project, I’m working on mobile management. At the moment, the control of the camera with the mouse and the movement with the WASD keys are implemented. I also implemented camera control using touch events in the right area of the screen. Now I want to make a player move using touch events in the left area of the screen. For example, there is a joystick, when touched at the top on which the player will go forward. If you touch up and left, then the player must go forward and left. Can you please tell me how to implement this control algorithm? Thanks.
Link to the project: https://playcanvas.com/editor/scene/726892