Forum Discussion
jaymalloy
12 years agoHonored Guest
Camera Height control during Game simulation with Unity?
I'm trying to figure out why the camera height/player height cannot be changed in game mode. I'm using a flat terrain, yet the normal keystrokes (5 and 6) are not working. I''m running on a Mac OS 10.6.8 platform, and I'm able to use the height controls in the stand-alone demo (keystrokes + and -). Thanks!
5 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionIt doesn't seem like the 5/6 keys work on the pre-compiled demo, but if you get the Unity files and compile yourself it does work.
- jaymalloyHonored GuestThanks for getting back to me.
When I compile the scene I get this:
https://www.dropbox.com/s/h04tfgwdbssxaat/screengrab1.jpg
and I noticed the default settings on the project settings are:
https://www.dropbox.com/s/9cz70zsa6frgrnv/unity%20screengrab.jpg
What do I need to change? Thanks! - cyberealityGrand ChampionCheck out the "UpdateEyeHeightOffset()" function in OVRMainMenu.cs.
- jaymalloyHonored GuestThanks,
That's exactly what I was looking for!
Jay - petergiokarisProtegeThe latest build scene sets a variable on in OVRPlayerController->OVRCameraController called UsePlayerEyeHeight. This will take the eye height set by the configuration tool. If you are playing with the Tuscany demo out of the box from the latest integration (0.2.3) you may find that this is stopping you.
Just turn UsePlayerEyeHeight off and 5/6 should start working again. It should only happen if you have a profile set up via the Config Tool.
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
- 2 years ago
- 3 months ago
- 10 months ago
- 9 months ago