pmndrs / ecctrl

🕹ī¸ A floating rigibody character controller
MIT License
533 stars 63 forks source link

Discussion: Mobile controls #7

Closed Magvin closed 7 months ago

Magvin commented 12 months ago

Would be nice if it won't only relay on keyboard, but also on mobile touch controls is there is a way to do this?

Romaixn commented 12 months ago

Yeah! Something like that for example: https://elysium.thebenezer.com/ would be awesome!

ErdongChen-Andrew commented 12 months ago

I'll definitely add the joystick feature in a future update 😁.

Magvin commented 11 months ago

I did some, but can't figure out how to do with pointer locker on mobile rotation of the world.

https://github.com/pmndrs/ecctrl/assets/23562296/3ed86d3e-f327-4a6c-8137-23f26a847823

UPD. Done but as i still trying to wrap up my mind how Z,X,Y works still looks shity

https://github.com/pmndrs/ecctrl/assets/23562296/2a9bcc47-f85c-4c70-8975-356ea71576fa

ErdongChen-Andrew commented 11 months ago

👍 That looks pretty good @Magvin ! Did you make the joystick by uself?

Magvin commented 11 months ago

@ErdongChen-Andrew no. Used a library as it had directions output https://github.com/bobboteck/JoyStick and just added to your existing code

image
ErdongChen-Andrew commented 11 months ago

Cool! I'll definitely take a look at the repo. I'm hoping maybe drei might include a joystick in the future lol

ErdongChen-Andrew commented 10 months ago

@Romaixn @Magvin Ecctrl now supports touch controls. I end up making my own 3D joystick 😅

Magvin commented 10 months ago

What a legend !