I am trying to implement virtual joystick with which the camera can be rotated in left-right direction and the characted can be navigated in forward/backward direction.
However I want to keep joystick floating. As in, the joystick should appear wherever user click on the screen.
This is what I could implement - In the left half of the screen, touch anywhere and you can access joystick only for left-right camera movement.
In the right half, touch anywhere and you can access joystick for fwd/bkwd navigation.Question - How do I combine all 4 controls in one joystick and keep it afloat.