Forum Discussion
Anonymous
13 years agoHow to set default Player Height?
Using the OVR character to controller, where do you set the default player height?
I can change it with 5,6, but can't seem to find where it sets the default of 1.85.
I can change it with 5,6, but can't seem to find where it sets the default of 1.85.
6 Replies
Replies have been turned off for this discussion
- AnonymousI found that its set in playerpref, but no idea how or where to set that outside of editing the playerpref file directly. Thoughts?
- cyberealityGrand ChampionYou should be able to edit the 'height' value in the character controller component (on the OVRPlayerController prefab).
- janlaHonored GuestIf you set the height value, the "Player Height" in VRVariables menu (hit spacebar) still displays 1,85m
I wanted to find out why, and it's because the OVRMainMenu script doesn't check the capsule height, but calculates it from the default height of 2.0. Would be nice to fix that at some point... - cyberealityGrand ChampionSorry, my bad.
You actually want to edit the "Neck Position" Y-value in OVRCameraController in the editor.
This will update the value in the OSD. - janlaHonored GuestHi,
just if someone is interested, I've tweaked the OVRCameraControler Script, so it sets the Neck and Eye Position automaticly depending on the the Character Controlers height ( = your actual body height )
I calculate the values according to this relations: http://mech.utah.edu/ergo/pages/Educational/safety_modules/ctd-anthropometry/index_files/image002.gif
Just add the following code to the Start() function:
// manually enter the unexposed skinwidth parameter from the character controller here
float skinwidth = 0.08f;
// calculate distances
float height = transform.parent.GetComponent<CharacterController>().height ;
NeckPosition.y = 0.87f*height-height/2f- skinwidth;
EyeCenterPosition.y = 0.936f*height - NeckPosition.y -height/2f - skinwidth;
EDIT: this is porbably redudant when you use the IPD. - binoflyHonored Guestvar p = CameraRig.transform.localPosition;
p.y = OVRManager.profile.eyeHeight - 0.5f * Controller.height
change eyeHeight to 0.2 f
it will work
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
- 3 years ago
- 8 months ago
- 9 months ago
- 6 months ago