Forum Discussion
davidmcclure
13 years agoHonored Guest
Help! Trouble Parenting Hydra Objects To OVRPlayerController
I am trying to set up a scene where the player has 1:1 control over a pair of handheld objects using the Razer Hydra. Currently I can achieve the following: Set up a scene with the OVRPlayerContro...
insomnia686
9 years agoHonored Guest
Hi,
It is an old post but I wanted to bring my contribution for the future people who needs it.
This is how I use the Hydra joysticks to manipulate the Oculus Rift DK1 Camera on Unity 5.5.1.
I have drag and drop the prefab SixenseInput in my scene.
I did not update the driver of the Hydra, just plug&play (it makes crap):smile:
I have modified the script OVRPlayerController in UpdateMovement():
It is an old post but I wanted to bring my contribution for the future people who needs it.
This is how I use the Hydra joysticks to manipulate the Oculus Rift DK1 Camera on Unity 5.5.1.
I have drag and drop the prefab SixenseInput in my scene.
I did not update the driver of the Hydra, just plug&play (it makes crap):smile:
I have modified the script OVRPlayerController in UpdateMovement():
andfloat leftAxisX = OVRGamepadController.GPC_GetAxis(OVRGamepadController.Axis.LeftXAxis);
float leftAxisY = OVRGamepadController.GPC_GetAxis(OVRGamepadController.Axis.LeftYAxis);
//Take Hydra Left Joystick value
if (leftAxisX == 0.0)
leftAxisX = SixenseInput.Controllers[0].JoystickX;
if (leftAxisY == 0.0)
leftAxisY = SixenseInput.Controllers[0].JoystickY;float rightAxisX = OVRGamepadController.GPC_GetAxis(OVRGamepadController.Axis.RightXAxis);
//Take Hydra Right Joystick X value
if (rightAxisX == 0.0)
rightAxisX = SixenseInput.Controllers[1].JoystickX;
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 4 years ago