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

[keyboard-controls] Add support for up down movement with configurable keys

Emnolope opened this issue · comments

I'm reopening this issue.
#149
aframevr/aframe#809

Aframe is a high-level framework. That means it's supposed to be easy to use for new users, with a lot of prefabricated stuff to make working with it easier, even if it's not as powerful as 3.js

Navigating in 3d space is important. Not every 3d environment will act like the ground. I shouldn't have to reverse engineer the whole framework to get Q and Z to work like W A S D, because those are high level features. This isn't beginner friendly, and will definitely put vertical controls in the 'impossible to do' box of tasks for some.

Q and Z? Interesting. Do you know other softwares or games that uses those keys for up and down?
I customized aframe wasd-controls in an old project to use KeyQ/PageUp and KeyE/PageDown in wasd-controls to move up and down.
The extended-wasd-controls component is using R and F keys for up and down, and QE to move camera.

Also related to move camera:

We definitely want all those keys to be configurable.

PgUp/PgDown and some other key would be useful if up/down navigation is enabled. They would also be useful in navigating the Inspect Scene view. QZ, RF, etc. would be fine. If AD were turning, and shift-AD was strafe and then WS would be forward/back and shift-WS could be up/down.

@timriker Is the shift-AD for strafe something that is generally implemented in games? I'm not a PC gamer, or gamer at all, so I have no idea.

You can sponsor $100 to vincentfretin fully or partially to work on this feature. Find other work you can sponsor at https://github.com/c-frame/sponsorship

I'm traveling, but in short, it depends. For vehicle controls there would not be strafing. Early games like Doom used turning. If the mouse is constrained to the window, then strafing works, but when the mouse is not constrained, turning works better for me