Search Unity

VR Flight Stick/Control Yoke Help

Discussion in 'VR' started by VR_Rookie, Sep 21, 2018.

Thread Status:
Not open for further replies.
  1. VR_Rookie

    VR_Rookie

    Joined:
    Nov 24, 2012
    Posts:
    35
    Hi,

    For a hobby I'm making a VR flight sim. Currently I fly my plane around with my Joystick and not with the Oculus controllers. What I want to do now is use my VR hands to grab the control yoke (Boeing B-29 control yoke) and control the aircraft with that control yoke in the cockpit.

    My question is, how can I control the aircraft with the control yoke 3d model that I have in the cockpit using the input manager? How do I to make the Joystick (control yoke) virtual so that I'm controlling the aircraft in-game?

    any help will be much appreciated!

    I attached a picture of my control yoke. Control_Yoke.jpg
     
    Last edited: Sep 21, 2018
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Using the Input Manager? I don't think so. But what you should do is wrap the Input Manager in your own little manager class, that either grabs its input from the actual Input Manager (when you want to use a real control yoke), or calculates inputs from the position of the virtual yoke. Then the rest of your code should talk only to your manager, and have no concern with the details.
     
Thread Status:
Not open for further replies.