Eye cameras jump around during update phase
FYI
I had attached an object to the right eye camera of an OVR character in order to mount it to the screen (not ideal, I know). This exposed some oddness. During the update of the object I mounted (a gun) the eye's camera would either be in it's true location, or another location beneath the player.
I presume this was caused by execution order. Once I moved critical behavior to LateUpdate everythnig worked fine.
I also presume this could be solved more efficiently with script execution order, but that investigation seemed like a lot of work for a problem that was already solved.
Has anyone else encountered "moving cameras" during their updates or have any insights as to why this might happen? I was thinking it was floor reflection, but my observations weren't always consistent with this.
Jesse Joudrey
Oh, check out the results of my efforts, Oculus Bots, an FPS based on the unity Angry Bots demo...
Download the demo (Oculus Rift Requried): http://bit.ly/ZUObHJ
Full Video: http://youtu.be/0Tmt7TMrKvY
Short Video: http://www.youtube.com/watch?v=yHqvgpcFhwc
Reddit: http://www.reddit.com/r/oculus/comments/1ccm9u/oculus_bots
I had attached an object to the right eye camera of an OVR character in order to mount it to the screen (not ideal, I know). This exposed some oddness. During the update of the object I mounted (a gun) the eye's camera would either be in it's true location, or another location beneath the player.
I presume this was caused by execution order. Once I moved critical behavior to LateUpdate everythnig worked fine.
I also presume this could be solved more efficiently with script execution order, but that investigation seemed like a lot of work for a problem that was already solved.
Has anyone else encountered "moving cameras" during their updates or have any insights as to why this might happen? I was thinking it was floor reflection, but my observations weren't always consistent with this.
Jesse Joudrey
Oh, check out the results of my efforts, Oculus Bots, an FPS based on the unity Angry Bots demo...
Download the demo (Oculus Rift Requried): http://bit.ly/ZUObHJ
Full Video: http://youtu.be/0Tmt7TMrKvY
Short Video: http://www.youtube.com/watch?v=yHqvgpcFhwc
Reddit: http://www.reddit.com/r/oculus/comments/1ccm9u/oculus_bots
