Forum Discussion
goodl
11 years agoExplorer
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
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
12 Replies
Replies have been turned off for this discussion
- goodlExplorercan anyone help? I should add I'm using a DK1, is there an issue with the latest SDK and DK1 with this?
- ryahataHonored GuestWhat 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.
- goodlExplorerDidnt make any difference sadly
- moltonExplorerSo 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
- goodlExplorer
- goodlExplorer
- moltonExplorerTry 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.
- goodlExplorerseems to work ok with 0.3.2, I've spent hours trying to troubleshoot this, are dk1 users second class already?
- InvariantHonored GuestHave you tried OVRDevice.ResetOrientation? This helped me to get the camera facing the way I wanted when starting up or changing scenes.
- goodlExplorerno, how do I implement it?
'
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
- 9 months ago
- 2 years ago