benotter / OVRLay

(Hopefully) An easy-to-use toolkit for developing OpenVR Overlays with Unity Engine!
MIT License
97 stars 13 forks source link

Recenter position and Overlays #2

Closed kariyann closed 5 years ago

kariyann commented 5 years ago

Hello,

I'm creating a VR user experience for an aircraft simulator. I used your project to create static panel overlayed over this simulator. This one is using SteamVR to be played in VR. I succeed in recentering position using OpenVR.System.ResetSeatedZeroPose(); But it seems that created overlays doesn't reset their positions. Do you know this issue ? Is there any way to recenter overlays position ?

Thanks a lot

kariyann commented 5 years ago

I solved this replacing line 227 in OVR_Overlay_GetSet.cs protected ETrackingUniverseOrigin _overlayTransformAbsoluteTrackingOrigin = ETrackingUniverseOrigin.TrackingUniverseStanding;
by protected ETrackingUniverseOrigin _overlayTransformAbsoluteTrackingOrigin = ETrackingUniverseOrigin.TrackingUniverseSeated;