dataarts / dat.guiVR

A flexible graphical user interface for changing variables within WebVR.
https://workshop.chromeexperiments.com/examples/guiVR/
Apache License 2.0
312 stars 49 forks source link

Implement dragging of GUI panel #3

Closed customlogic closed 8 years ago

customlogic commented 8 years ago

Once we've transitioned to a "laser pointer" model (see #1), I think moving the panel around should work like this:

  1. Pointing the laser pointer anywhere on the panel (see #2) and squeezing the side grips starts "drag mode"
  2. Once in drag-mode, the laser pointer beam turns into a solid "stick" that you're holding in your controller hand. The stick is the same length as the beam when you grabbed the panel. You can move the panel around the scene by moving your wrist, walking it, turning around, raising it into the air, etc.
  3. Releasing the grip leave the panel just where it is, and returns to "laser pointer" mode

A nice feature would be allowing you to lengthen or shorten the "stick" by swiping up and down on the thumbpad (So you can place it far away, or pull it closer to you)

mflux commented 8 years ago

There's an implementation of it right now but it's janky and broken. Worth testing...

mflux commented 8 years ago

Thanks Ricardo

https://github.com/mrdoob/three.js/commit/bbb6aeb8505c9f7d90548520233a44356e278280

mflux commented 8 years ago

Completed with d8f68dfda44eba9adb8f647725e3fe51d240d0db