aframe-extras icon indicating copy to clipboard operation
aframe-extras copied to clipboard

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

Open Emnolope opened this issue 2 years ago • 5 comments

I'm reopening this issue. https://github.com/c-frame/aframe-extras/issues/149 https://github.com/aframevr/aframe/issues/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.

Emnolope avatar Apr 09 '23 02:04 Emnolope

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:

  • #399

We definitely want all those keys to be configurable.

vincentfretin avatar Apr 09 '23 09:04 vincentfretin

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 avatar Jul 12 '23 17:07 timriker

@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.

vincentfretin avatar Jul 14 '23 12:07 vincentfretin

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

vincentfretin avatar Jul 14 '23 12:07 vincentfretin

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

timriker avatar Jul 14 '23 15:07 timriker