Skip to main content
Up and Coming
August 28, 2014

Camera Facing in wrong direction in car

I'm a newbie developer so forgive me if this is a stupid question but on my game what object should I be setting the follow orientation to? No matter what I do or choose t always starts facing what seems like a seemingly random direction

bug2.jpg
bug1.jpg

Here's what it looks like 'in action'

I hid the fact that when it starts you're looking in the wrong direction (no matter what I 'follow' thats why theres a light at the front, but that didnt work either

http://youtu.be/4ZmOzVNzj3s
    This topic has been closed for replies.

    12 replies

    goodlAuthor
    Up and Coming
    August 29, 2014
    can anyone help? I should add I'm using a DK1, is there an issue with the latest SDK and DK1 with this?
    Up and Coming
    August 29, 2014
    What is the GameObject that moves (translation and rotation). If I had to take a guess it is GenericCar. Try setting the Follow Orientation variable of the OVRCameraController to that.
    goodlAuthor
    Up and Coming
    August 30, 2014
    Didnt make any difference sadly
    Up and Coming
    August 30, 2014
    So everything is working right, you are just concerned with the direction your player is facing initially? have you tried tweaking the YRotation value in ovrplayercontroller.cs? Maybe in the Start() function, or at least somewhere where it will happen only once
    goodlAuthor
    Up and Coming
    August 30, 2014
    I can't do an offset because it's seemingly random each time, Ive tried every did the last DK1 firmware update make any difference? I'm scared to do it as I am an exhibitor at the Space 1999 convention for my demo in September and my DK2 wont be here till October.
    goodlAuthor
    Up and Coming
    August 30, 2014
    b06.jpgheres a screenshot
    Up and Coming
    September 1, 2014
    Try making a copy of your project and making it a 0.25c Oculus SDK integration project and see if the problem is still occuring if you can, I might do the same thing with my current project. I'm having a similar problem but I'm pretty sure it's something I'm doing wrong rather than some kind of weird Oculus/Unity bug, but since you are having orientation weirdness, maybe it is. My problem is with my forward direction. It seems to be crooked from the get go and then something triggers it to work right all of a sudden, but not every time, and I haven't figured out what it is exactly yet.
    goodlAuthor
    Up and Coming
    September 6, 2014
    seems to work ok with 0.3.2, I've spent hours trying to troubleshoot this, are dk1 users second class already?
    New Participant
    September 6, 2014
    Have you tried OVRDevice.ResetOrientation? This helped me to get the camera facing the way I wanted when starting up or changing scenes.
    goodlAuthor
    Up and Coming
    September 6, 2014
    no, how do I implement it?
    '