- Home /
Oculus VR Drag Slider With Finger
I'm making a menu system for my Oculus program. The menu is sized in worldspace and you pick it up like a clipboard. I have the menu set up so that buttons have a trigger box collider on them, and I add a tiny trigger sphere collider to the tip of each index finger of the Oculus controller at runtime. Then I use OnTriggerEnter() to add functions to the buttons as I need. This way I can press buttons with my finger. I have gotten this to work with toggles, so I can switch toggles on/off with my finger.
Now I need to add functionality for sliders. My thought was to add a trigger box collider to the handle of the slider and to somehow use an onTriggerEnter to change the handle position.
Is there an easier way to do this? Can I instigate a Drag event with OnTriggerEnter, and somehow link that to the position of my finger?
Your answer
Follow this Question
Related Questions
How to enable/disable VR from code? 0 Answers
Screen Space UI looks jagged in VR (oculusGO) 0 Answers
Weird UI slider behaviour 1 Answer
Does Oculus Go still require importing Oculus libraries? 0 Answers