Ejemplo n.º 1
0
    public void CheckOfPacakge(MQTT_UserPackageReceived package)
    {
        m_info = JsonUtility.FromJson <OVRBoundaryInfo>(package.m_message);


        DrawLineOf(m_info.boundaryGeometryArea, Color.green);
        DrawLineOf(m_info.boundaryGeometryOuter, Color.yellow);
    }
    public static OVRBoundaryInfo GetBoundaryInfo()
    {
        OVRBoundaryInfo boundary = new OVRBoundaryInfo();

        boundary.isBoundaryVisible      = OVRManager.boundary.GetVisible();
        boundary.isConfigured           = OVRManager.boundary.GetConfigured();
        boundary.boundaryDimensionArea  = OVRManager.boundary.GetDimensions(OVRBoundary.BoundaryType.PlayArea);
        boundary.boundaryDimensionOuter = OVRManager.boundary.GetDimensions(OVRBoundary.BoundaryType.OuterBoundary);
        boundary.boundaryGeometryArea   = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.PlayArea);
        boundary.boundaryGeometryOuter  = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary);
        return(boundary);
    }
Ejemplo n.º 3
0
 void Update()
 {
     m_boundaryInfo = TestWithTracker.GetBoundaryInfo();
 }