Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Keystone's avatar
Keystone
Honored Guest
12 years ago

Adjusting Height of OVRPlayerController

Hello,

I'm having some difficulty figuring out the best way to configure the height of the OVRPlayerController, and wonder what the best way to adjust that would be?

I have a scene that isn't scaled exactly right to use the default settings of the OVRPlayerController - the player is too short.

If I increase the 'height' value in the character controller, it does increase the camera / head height, however, the collider ends up so tall that it can't get through doorways, even though the camera height is perfect.

Moving the cameras themselves obviously doesn't have any impact, as their height seems to be established in the OVRCamera script.

My next step is to start hacking around in that script - maybe exposting the EyePosition and NeckPosition as public variables I can adjust, but I wondered if there is an easier way I'm not thinking of?

How have others handled character height, beyond just making sure your Unity scene is built from the beginning around the OVR controller's height?

Thanks in advance!
Jon

8 Replies

Replies have been turned off for this discussion
  • I could really use some help with this if anyone has ideas around how to resolve this? Maybe it's been posted elsewhere already?

    Any help is greatly appreciated!
    Thanks,
    Jon
  • The neck position is public already (eye center too), just click on the "OVRCameraController" in the hierarchy under OVRPlayerController, you''ll see you can set it right there in the inspector, no scripting needed (though it's not hard to tweak in the script either).

    Can set the height under OVRPlayerController as desired (to fit under doors and such), will set collider height of course, then just tweak the neck position Y setting from there. Neck position does NOT effect the collider height, so think that ought to solve your issue if I understand correctly.
  • You should try to stick with the OVR scale (which I believe is 1 unit to 1 meter). Otherwise the stereo camera parameters will be off and not look correct.
  • So If I understand you correctly, you should never change the default Height setting of 2 meter under OVR Player Controller_ Character Controller ? What about the Radius and Skin width there to avoid getting stuck and so on if you are too wide? change the scale instead?

    Just to be 100% sure, when you mean to change the scale instead you mean OVR Player Controller_ Transform_Scale right? So since I´m 178 cm high but the OVR Player Controller is 2 meter as default I would need to change this scale to 0.89 instead of 1 as the default values. (178 / 200 = 0,89) ?
  • Sorry, make the collider bigger? On these topics I think it could be a little better documentation on the Unity Integration than what I have seen so far :)

    thanks for help!