Forum Discussion
Ixaeon
10 years agoHonored Guest
Camera facing problems
In my scene I have a character that faces a tree. I have set the ovrcamerarig prefab at the position of the character's eyes. The character model has an empty gameobject as parent. I move and rotate the empty gameobject to move and rotate my model. My ovrcamerarig has the model's head as parent. I suppose that's not necessary, but I do need to have it as a child of the empty gameobject.
The problem is that when I have my head turned the moment the scene loads, the game thinks i'm actually looking forward (so i'm looking at the tree). So if I then look forward again, the ingame camera rotates to the right so that i'm looking at the character's right arm.
The way it is now, if the player is looking around the moment a new scene starts loading, the camera and body will not face the same direction.
I'm sure it must be very simple to fix this as what I want isn't that uncommon, but I haven't found a solution yet :s
The problem is that when I have my head turned the moment the scene loads, the game thinks i'm actually looking forward (so i'm looking at the tree). So if I then look forward again, the ingame camera rotates to the right so that i'm looking at the character's right arm.
The way it is now, if the player is looking around the moment a new scene starts loading, the camera and body will not face the same direction.
I'm sure it must be very simple to fix this as what I want isn't that uncommon, but I haven't found a solution yet :s
3 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionSee the instructions here for using the Unity First Person Controller w/ the OVRCameraRig.
viewtopic.php?f=20&t=20032&p=252243#p246259 - IxaeonHonored GuestHello Cybereality,
thanks for the reply. However I am still having issues with this. Even if I just drag the ovrplayercontroller prefab in my scene and run it, i'm having the problem. Interesting enough, I only have this issue when looking left or right when my scene starts. If I look up the moment my scene starts, my ingame camera also looks up. When I look down at startup, the ingame camera also looks down. Only if I look left or right, the ingame camera looks forward.
Ixaeon - cyberealityGrand ChampionSee this post: viewtopic.php?f=17&t=22285&p=262169#p262169
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
- 1 year ago
- 9 months ago
- 9 months ago