Thanks for sharing!
btw, in addition to this, does anyone know how to ignore the tilt of the phone on application launch when you deal with images?
I mean, if I place an image in my vr-app, it aligns and displays correctly only if I keep my phone right in front of eyes (landscape orientation and 90 degrees) before it starts. Otherwise, it can moves left/right/up/down depend on the tilt angle of the device which was on the launch time, (when you see “place your phone into your cardboard” splash screen)