Search Unity

Question Help with SteamVR 3rd person movement via Valve Joystick

Discussion in 'Scripting' started by BWpAPbkV, Apr 19, 2021.

  1. BWpAPbkV

    BWpAPbkV

    Joined:
    Apr 17, 2021
    Posts:
    16
    Hi,

    What I want to do:
    Move 3rd person character with left knuckle controller Joystick


    What i have done:
    • Created bindings in SteamVR Inputs for my action (walking)
    • Checked SteamVR Input Live View to see if binding works - it does.
    • Created Controller script "SteamVRBasedController"
    • Imported Ybot from Mixamo as i want a 3rd person character to control
      • Added Controller Script to Ybot, along with Character Controller/Animator/Rigidbody/PlayerInput
      • set input to SteamVr input that i created
    • Ran the game and I can't move Ybot

    Do you know why this doesn't work or if an existing solution exists? (I've searched around this forum and others but none of them seem to use SteamVR
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    782
    Hi,

    I think you should try to figure out more specific what causing your problem.
    For example, do you get the expected input from the joystick, and how is that input applied to your player?
    Maybe the joystick input moving interferes with some other player moving controllers, like 6DOF tracking.
     
  3. BWpAPbkV

    BWpAPbkV

    Joined:
    Apr 17, 2021
    Posts:
    16
    Hi,

    Thats the issue, i copied everything from the youtube videos so it should work
    I get the expected input as SteamVR Input Live View will show that the binding is worked, Input to player (Ybot) is applied here

    I dont have any other player moving controllers
     

    Attached Files:

  4. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    782
    Guess it's just to follow the tutorial as close as possible then, and pay attention to where your game is starting to divert from the example. A lot of steps are probably mandatory, and not optional.
     
    Last edited: Apr 19, 2021
    BWpAPbkV likes this.