aframe-xr-boilerplate icon indicating copy to clipboard operation
aframe-xr-boilerplate copied to clipboard

Mobile movement

Open Javiavan opened this issue 2 years ago • 6 comments

Hello, how can I activate the movement when entering with a mobile device? With the PC and VR all ok. But with the mobile I can't walk. Thanks

Javiavan avatar Mar 29 '22 18:03 Javiavan

That's a good question, I should probably make a virtual joystick for the cameraRig in the DOM overlay element.

AdaRoseCannon avatar Mar 29 '22 19:03 AdaRoseCannon

Ideally it would just provide a different more appropriate for the format experience on mobile but what that is I dunno

AdaRoseCannon avatar Mar 29 '22 19:03 AdaRoseCannon

I use Professor Stemkoski's joystick and extended wasd components (https://github.com/stemkoski/A-Frame-Examples) along with the blink and the simple navmesh (thanks @AdaRoseCannon!) components to get pc/touch/vr movement with navmesh constraint, e.g. https://servicemedia.net/webxr/po1w1b. A bit of useragent sniffing is needed to turn on the joystick on mobile.

polytropoi avatar Mar 29 '22 22:03 polytropoi

But what has changed so that you cannot navigate with your fingers from your mobile?

Javiavan avatar Mar 31 '22 16:03 Javiavan

Ok. Adding "aframe-extras-min" I got it to work. But some errors appear in the developer tools although testing on different devices seems to work fine

Javiavan avatar Apr 01 '22 07:04 Javiavan

@AdaRoseCannon feel free to inspect my boilerplate, maybe this could help you https://github.com/inplayo-com/aframe-boilerplate

dendrofen avatar Jun 27 '22 00:06 dendrofen

I would like to add new controls compatible with movement-controls at one point to have two virtual joyticks on mobile and tablet, I created an issue to track that https://github.com/n5ro/aframe-extras/issues/398

vincentfretin avatar Dec 14 '22 17:12 vincentfretin