Forum Discussion
ian80
11 years agoHonored Guest
Beginner: I need to change the OVR character controller.
Hey guys,
Working on a prototype in Unity. I love my Rift and it has inspired me like never before to actually build something in Unity.
i imported the default OVR camera/controller into my game. I want to alter the character controller to simply rotate with A and D, move forward with W and move backwards (VERY slowly) with S. I don't want any strafing. I also want my "forward" position to be locked to the keyboard controls (IE, Rift rotation won't affect the direction I move in). I'm not looking for a complete walkthrough, just need to be pointed in the right direction. I looked through the script, but didn't see where I would alter these settings.
I want a very gentle control scheme. A week in and I'm still getting very ill in my Rift. I need testing to be as gentle on me as possible.
Thanks!
PS: Doing skyboxes the normal way (attaching them to the camera, or editing them in rendering settings) obviously doesn't work. Is there a simple way to get my skybox working?
Working on a prototype in Unity. I love my Rift and it has inspired me like never before to actually build something in Unity.
i imported the default OVR camera/controller into my game. I want to alter the character controller to simply rotate with A and D, move forward with W and move backwards (VERY slowly) with S. I don't want any strafing. I also want my "forward" position to be locked to the keyboard controls (IE, Rift rotation won't affect the direction I move in). I'm not looking for a complete walkthrough, just need to be pointed in the right direction. I looked through the script, but didn't see where I would alter these settings.
I want a very gentle control scheme. A week in and I'm still getting very ill in my Rift. I need testing to be as gentle on me as possible.
Thanks!
PS: Doing skyboxes the normal way (attaching them to the camera, or editing them in rendering settings) obviously doesn't work. Is there a simple way to get my skybox working?
2 Replies
Replies have been turned off for this discussion
- drashHeroic ExplorerIf you're using the OVRPlayerController prefab, you can immediately shut off strafing and backward movement by sliding the "Back and Side Dampen" slider all the way to the left, and decrease the "Rotation Amount" if you don't want rotation-by-mouse to be so quick.
To modify it beyond that (to make it move independent of where you're looking), you can look inside OVRPlayerController.cs in the UpdateMovement() method. There's a bunch of checks for input in there and maybe you can hack away at it from there. I haven't played with it much so I can't help much beyond that.
For various solutions to the skybox issue, see this post I made rounding up all the ones mentioned on this forum so far.
Hope that helps! - cyberealityGrand ChampionWhat you probably want to do is just create your own custom player controller and place the OVRCameraController inside of that. You could also hack up the OVRPlayerController, but making your own will probably give you more control.
You can see my instructions for getting this to work with the Unity FirstPersonController (which is probably a good place to start): viewtopic.php?f=37&t=3018&p=37280#p37280
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
- 10 months ago