How to get current rotation angle change event for VrPanoramaView
?
I am building a simple 360 image viewer with VrPanoramaView
with an angle icon that shows current angle of the 360 image.
As far as I see, there is no default "navigator" icon for VrPanoramaView
, so I am adding manually but I am not able to simple get current rotation angle of 360 image.
There are two ways that image angle will be changed: gyroscope and touch/drag event.
I beleive I can add my custom gyroscrope and touch event and manually call getHeadRotation
but I am looking for something simple callback from the library.
I don't see any documentation regarding this.
P.S. I am not looking to update to the new Cardboard SDK, which I think is heavy for a simple 360 image viewer. Plus, I don't see any sample code for using Cardboard SDK, other than google's own repo.
question from:
https://stackoverflow.com/questions/65880663/vrpanoramaview-angle-update-listener 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…