Forum Discussion
AndyOHart
12 years agoHonored Guest
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
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
4 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionSorry, I am not sure about this one.
Anyway, since this is a Unity question I'm moving to the Unity forum. - AndyOHartHonored GuestOkay thanks for that. Hopefully get a reply there :)
- JoseHeroic ExplorerHello
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. - troach06Honored GuestTo 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.
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
- 11 months ago
- 4 years ago