arenaxr / arena-web-core

An environment to view and interact in multiuser virtual and augmented reality.
https://docs.arenaxr.org
BSD 3-Clause "New" or "Revised" License
41 stars 28 forks source link

VR controller support #256

Open anthonyrowe opened 3 years ago

anthonyrowe commented 3 years ago

We should add nav in VR for platforms like quest. Maybe the WASD keys already map? Could also do teleporting like here: https://github.com/fernandojsg/aframe-teleport-controls

nampereira commented 3 years ago

This seems related too: https://github.com/conix-center/ARENA-core/issues/176

hi-liang commented 3 years ago

(mostly) addressed with #336

The left thumb stick will teleport (FORWARD) and turn (LEFT/RIGHT)

Currently we do NOT have functionality bound, or publish clientEvents related to input of any other VR controller buttons. Given the variation of controller buttons however, this may not be an fixable issue and may even be too spammy, since "clicks" with a controller will already produce not-device-specific mouse up/down click clientEvents

What may be worth considering is the visual representation of the controller. currently we are using a static vive controller model which

  1. Isn't exactly representative of the users' actual model
  2. Does not cast a visual ray to other users
  3. May be better represented by an actual (cartoon) hand ?
  4. Does not visually show its 'parent' camera. Perhaps color shifting it to the owner's cam name color or somesuch?