Skip to main content
Up and Coming
March 11, 2014

Movement with Hydras Unity

Hey.
So I'm doing my project in Unity with the Hydras and Oculus.
Since rift integration and positional tracking seems to be quite easy I wanted to focus on the right hydra controller integration.
For testing I don't want to have to constantly wear the rift so I'm trying to create an alternative control scheme with just the right hydra for moving forward and backwards and turning left and right, and also allowing the movement of the hydra in the 3D area.

How should I go about this? The FPS controller they include doesn't work for the Hydra as the Hydra is used as the mouse movement instead so I'm not sure what I would have to change to just make the Hydra joystick move the way I want.
I tried to code my own movement system also.
I can move the ways I want however there is no collision detection so I'm not sure what else to do.
Thanks for any help
    This topic has been closed for replies.

    4 replies

    Inspiring
    March 11, 2014
    Sorry, I am not sure about this one.

    Anyway, since this is a Unity question I'm moving to the Unity forum.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    AndyOHartAuthor
    Up and Coming
    March 12, 2014
    Okay thanks for that. Hopefully get a reply there :)
    Inspiring
    March 12, 2014
    Hello

    You may benefit from looking at drash's hydra demo which he has provided source for. There are some scripts in there that might help you with some of the controller movements.

    "AndyOHart" wrote:
    The FPS controller they include doesn't work for the Hydra as the Hydra is used as the mouse movement instead ...


    If I'm understanding correctly, your hydras are controlling the mouse cursor? If so, that might be because you have motion creator running in the background and it's making your hydra emulate the mouse. You might want to close motion creator, or disable/delete the mouse control profile.
    Up and Coming
    March 17, 2014
    To add movement to the joysticks, just address the left and right controllers and then assign variables to each axis. Like JoyX = Right controller x axis, and then say if JoyX >0{ moveright = true; if joy Y< 0{ moveback = true and so on :) same goes for rotation. I forget what the variables for rotation are in the player controller though.