Skip to main content
New Participant
April 15, 2015

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

    3 replies

    Inspiring
    April 15, 2015
    See the instructions here for using the Unity First Person Controller w/ the OVRCameraRig.

    viewtopic.php?f=20&t=20032&p=252243#p246259
    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
    IxaeonAuthor
    New Participant
    April 17, 2015
    Hello 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
    Inspiring
    April 17, 2015
    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