Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
vastness's avatar
vastness
Protege
5 years ago

Unity Quest controller multiplier/scalier for Disabilities

Hi,
I'm looking to be able to multiply the amount of movement and rotation of the controllers for a Disability/Rehab project.
I have users that have limited movement and the movement they have needs to be amplified.
eg.  a small movement or rotation of the controller will be a larger movement in the VR world.

3 Replies

Replies have been turned off for this discussion
  • I also neeed this. Seems like it would be easy to add into the oculus settings - similarly to mouse sensitivity on a computer.

    • vastness's avatar
      vastness
      Protege

      Hi,

      I did work it out. 

      Ok so create a GameObject, add a child GameObject inside of it.

      Create a script on the child GameObject that has variables for its Transform position and rotation eg. 6 variables.

      But the trick is that you need a reference point to multiply from. eg. hand resting position.

      Multiply the childs variable by the multiplier value you need but from the reference position.

       

      Then connect the parent GameObject to the Tracking position in Oculus plugin and the Hand connects to the child GameObject.

      So if you have a 3x multiplier, when the hand is at the reference position, it will track with your hand.

      But as you move the hand away from the reference position, it will be multiplied by the multiplier.

      This includes the rotation.

      I hope that makes sense.