ErdongChen-Andrew / CharacterControl

Floating Capsule Character Controller (Rigibody control)
https://character-control.vercel.app
MIT License
378 stars 52 forks source link

Mobile joystick #6

Closed sliktrik closed 7 months ago

sliktrik commented 10 months ago

First off this project is amazing 👏

it would be great to see a joystick integrated for touch devices like https://www.cssscript.com/demo/touch-virtual-joystick/

ErdongChen-Andrew commented 10 months ago

Will definitely consider adding a joystick in the future update. But first I need to find a proper way to handle camera movement on mobile devices.

sliktrik commented 10 months ago

I think this is a good example https://niksgames.com/blockland/

I’ve seen a couple of other projects handle it this way

as you move the joystick left and right it rotates the player and as you move up down it controls the movement

the whole time the camera is fixed behind the player at a set distance and follows the rotation

ErdongChen-Andrew commented 7 months ago

@sliktrik it's now supports touch screen controls 😁

sliktrik commented 7 months ago

👏 epic work

frault75 commented 7 months ago

good job!