Move UI Buttons in a VR application based on Google VR sdk
It is a simple VR application to view 360 degree photos. I have UI buttons for next and previous photo. What I want is that when a person is viewing a photo at any angle around 360, and if he sees below he should get those UI buttons.
I have tried to rotate those UI button with the camera using Quaternion.RotateTowards
, Quaternion.Slerp
, Quaternion.SlerpUnclamped
but the results are not like what we see in similar VR applications.
I am using GoogleVR sdk. Please Help.
What I've done is, to create a rotating base separate from the Camera. And the base swivels and follows the $$anonymous$$ain Camera's rotation. And under the rotating base, I have the UI Btns, which only fade into view when the UI Btns & Reticle's (Or Centre of Screen) Screen Distance is within a "Near" Threshold.
Is this what you're looking for?
Yes the similar one. But what is this base swivels? Can you share the code to make UI buttons fade into the view at threshold distance as you mentioned?