Search Unity

Virtual joysticks question

Discussion in 'AR/VR (XR) Discussion' started by dotcommer, Oct 23, 2016.

  1. dotcommer

    dotcommer

    Joined:
    Jun 4, 2015
    Posts:
    8
    I want to try building a virtual joystick (or two) that you grab and tilt to maneuver a vehicle, but I'm not sure where I should start in exploring that idea. I've figured that I'll need to have the player parented to the vehicle, but then I guess I need to figure out how to split up the controls so tilting the left joystick is forward/backward/side to side, and the right controller is heading and pitch. The speed would be dependent on how much the joystick is tilted.

    Has anyone ever tried this before? Any suggestions how I could get started exploring this idea?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,442
    There are some mobile joystick samples in the built-in Crossplatform input package (right click over project window, import Crossplatform package)
     
  3. dotcommer

    dotcommer

    Joined:
    Jun 4, 2015
    Posts:
    8
    For Vive though? What you're suggesting sounds like those circular game pads for mobile games...
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,442
    Oops, didn't notice it was in vr forum..