c-frame / aframe-extras

Add-ons and helpers for A-Frame VR.

Home Page:https://c-frame.github.io/aframe-extras/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use right stick to rotate the player in the movement controls

fangzhangmnm opened this issue · comments

Hi. I think using right stick to rotate the player in the movement controls is essential for seated VR experience

Hi, yes, this is working on master, right?

vincentfretin

Yes. it is fixed! thank you very much

BTW it's best practice to use snap rotation instead of continuous rotation.

If you really want snap rotation, you may be interested by aframe-blink-controls that does it by default, it's even configurable, you can disable with snapTurn:false. You can also contribute a PR to add it to gamepad-controls.
But you shouldn't have both movement-controls with gamepad listed and blink-controls at the same time. See aframe-xr-boilerplate how it switches between the two components via a UI on your wrist, this code especially.

+1 for the aframe-xr-boilerplate. It even has a clever navigation IIRC.

Note that gamepad-controls in this repo is a generic component. I think it can work with a XBox One or PS5 gamepad? I have none so I can't test. So by default you don't want snap turn. You want that only in VR mode.