Skip to main content
New Participant
March 1, 2014

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?
    This topic has been closed for replies.

    2 replies

    Inspiring
    March 2, 2014
    If 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!
    Titans of Space PLUS for Quest is now available on DrashVR.com
    Inspiring
    March 3, 2014
    What 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
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV