Skip to main content
Up and Coming
September 1, 2013

HydraDeck - Hydra motion controls (Updated)

Hello folks,

I've come up with a novel controls system using the Razer Hydra and made a few demos with it;



I've now ported this same code to Unity! If you'd like to add this to your project, you can download the scripts here;
https://drive.google.com/file/d/0B1KRnJKwYT-0VllyNGlRQkdHeUE/edit?usp=sharing

To set it up you only need to;

1) Install the Sixsense unity plugin (http://u3d.as/content/sixense-studios/sixense-unity-plug-in/4pA)
2) Add the SixenseInput prefab to your scene
2) Install the HydraDeck_Unity.unitypackage
3) Add the Hydradeck\HydraDeckPlayerController prefab to your scene
4) (optional) add the Hydradeck\HydraDeck Hand prefab to your scene

Additionally, if you'd like to add a Hand to interact with the world, add the "HydraDeck\HydraDeck Hand" prefab
    This topic has been closed for replies.

    31 replies

    Up and Coming
    September 2, 2013
    I was asking about this in your collaboration thread, didn't think you'd bother - thanks! Will definitely check this out :)
    Up and Coming
    September 3, 2013
    Thank you sooooo much for sharing this!


    :D :D :D :D :D
    Have you listened to the Rev VR Podcast yet? Listen and subscribe through iTunes or through Stitcher http://www.reverendkyle.com
    Participant
    September 5, 2013
    Amazing! Thank you for releasing this! Now, if you could just release a plugin that allows us high-five you via the internet, many of us would be obliged to do so.

    Cheers!
    Participant
    September 6, 2013
    Hey Teddy,

    Thanks for this great Asset and your great work in general. I love Cover Shooter. HydraDeck really makes the difference in immersion. Can't wait to get it working with my project. https://shroudoftheavatar.com/forum/index.php?threads/dungeon-kit-explorer-a-fan-made-playable-demo.2919/

    When I add the HydraDeckCamera script, I find that my Avatar is raised something like 2 meters above the ground.

    Here is my GameObject Tree:
    PlayerControllerHAL
    +FirstPersonController
    ++Graphics
    ++Main Camera
    +OVRPlayerController
    ++ForwardDirection
    ++OVRCameraController
    +++CameraLeft
    +++CameraRight

    ( I have a script on the PlayerControllerHAL that probes for the existence of the Rift and enables the appropriate Controller. I plan to treat the Hydra in the same way. )

    I have tried attaching the HydraDeckCamera script to the OVRPlayerController and the OVRCameraController, with the same result.

    Any ideas?
    Teddy0kAuthor
    Up and Coming
    September 6, 2013
    You might need to set the "World Floor Y" value to match where the floor is in your world.

    It's worth noting this initial port only moves the camera around, I haven't tried to do anything that would move a player around, or handle collision or anything like that. The code's pretty straight forward, so it should be possible to apply it to this kind of scenario.

    If you get it to work for your game, I'd be happy to include your changes into the next release. Or if you're not so code inclined, I may be able to help out a bit
    GunLock - Multiplayer FPS UE4 Rollercoaster HydraDeck - RTS
    New Participant
    September 27, 2013
    Teddy0K,

    Any chance of making the razer unity scripts available on a different website? Like Dropbox, google, or something? The mega website is blocked for me. Thanks.
    Teddy0kAuthor
    Up and Coming
    September 30, 2013
    GunLock - Multiplayer FPS UE4 Rollercoaster HydraDeck - RTS
    New Participant
    September 30, 2013
    Thanks for the Google download.

    I have followed your instructions but I don't understand step 3. The oculus has two cameras parented to the OVRCameraController, and that is parented to the OVRPlayerController. Which components gets the Hydradeck camera script add-on? I've tried them all, followed the on-screen directions, and nothing happens.

    I added the HydradeckHandController to the right hand, and nothing happens.

    Are there any steps that you left out? Thanks.
    Participant
    October 20, 2013
    Add the Hydra Deck Camera script to the OVRPlayerController. Seemed to work for me.
    New Participant
    October 21, 2013
    Hey I tried using this with the OVRPlayerController but I get some weird results.
    When I tilt the head sideways, the geometry seems to get some kind of stretch.
    Also, your controller doesn't seem compatible with the capsule collision detection of OVRPlayerController.
    Finally, the worldFloorY value shouldn't really matter when used with the capsule (worldFloorY should be the bottom of the capsule I guess).

    Anyway, it would be awesome if you could post a demo project that works with OVRPlayerController :)