Forum Discussion
hayasc
11 years agoHonored Guest
Help with Oculus Controller?
So I'm fairly new to Unity and the Oculus and I need help. The Controller in the Unity Integration, isn't game material. You cant Jump, and most online scripts wont work for it. So I grabbed the OVR Camera Rig and put it in the first person control located inside unity's standard asset folder. When I loaded the demo there was a problem, its hard to explain but if i turned the oculus, the forward key wouldnt move. Example: if I looked left, and I pressed the forward key, I would go to the right, because thats where I was originally looking. If I continued to look forward and I pressed the Forward key, I would go forward. So I need to figure out how to stop this.
3 Replies
Replies have been turned off for this discussion
- dignifiedwebExpert Protege
"hayasc" wrote:
So I'm fairly new to Unity and the Oculus and I need help. The Controller in the Unity Integration, isn't game material. You cant Jump, and most online scripts wont work for it. So I grabbed the OVR Camera Rig and put it in the first person control located inside unity's standard asset folder. When I loaded the demo there was a problem, its hard to explain but if i turned the oculus, the forward key wouldnt move. Example: if I looked left, and I pressed the forward key, I would go to the right, because thats where I was originally looking. If I continued to look forward and I pressed the Forward key, I would go forward. So I need to figure out how to stop this.
Have you tried using the OVRPlayerController? It sounds like you just tried the camera rig? I know that player controller works as you describe. If you look left, press forward, it will move left. So, default behaviour is to move where you are looking. The Tuscany demo also has an example of this. I personally find that turning with the right analog stick causes motion sickness for me. I think part of the Unity integration comes with a Tuscany Package you can look at too if you're interested. I hope this helps.
I personally love their SDK documentation, maybe this would help if you haven't seen it yet:
https://developer.oculus.com/reference/unity/ - dignifiedwebExpert ProtegeHey,
I should learn to not reply when I'm not able to look at code. It looks like the OVRPlayerController does not support jump by default, you are absolutely right. It does look like the script has a jump function you can call.
They talked about it on this forum post: viewtopic.php?t=1571
Hope that helps. - cyberealityGrand Champion@hayasc: Yes, I am looking for a way to get the OVR Camera to work with the default First Person Controller, and this has better support for jumping and physical interactions (moving platforms, elevators, etc.). I got it almost working, except for the direction thing, which still isn't working. If you find a solution, please post it. Thanks.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device