ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

How to get play space boundry data from unity #166

Closed wirelessdreamer closed 4 years ago

wirelessdreamer commented 4 years ago

How do we get play space 3d location data with VIU? Can an example scene be added to the project.

chengnay commented 4 years ago

Are you referring to getting chaperone data?

wirelessdreamer commented 4 years ago

yes

chengnay commented 4 years ago

For OpenVR, there is API for chaperone, but I am not sure about WaveVR and OculusVR. I might need to check them out in order to add API in VIU and example scene.

dariol commented 4 years ago

Here's the official Unity way: bool UnityEngine.XR.XRInputSubsystem.TryGetBoundaryPoints(Vector3[])

For Wave, this doesn't apply as the system doesn't store chaperone boundaries. Application would need to determine floor via user interaction and the playspace always starts with user in the center and the boundaries defined as 2m x 2m (will have more size options in future Wave updates and may be added to VIU).