Ejemplo n.º 1
0
    public void ReportTestSetup()
    {
        bottomTouchInLeapSpaceT  = leap.InverseTransformPoint(bottomTouch.position);
        bottomEdgeInLeapSpaceT   = leap.InverseTransformPoint(bottomEdge.position);
        topTouchInLeapSpaceT     = leap.InverseTransformPoint(topTouch.position);
        topEdgeInLeapSpaceT      = leap.InverseTransformPoint(topEdge.position);
        leapOffsetInScreenSpaceT = bottomEdge.InverseTransformPoint(leap.position);
        screenHeightT            = Vector3.Distance(bottomEdge.position, topEdge.position);

        if (ConfigurationSetupController.selectedMountType == MountingType.OVERHEAD)
        {
            angleBetweenLeapScreenT = autoConfig.CentreRotationAroundZero(Vector3.SignedAngle(leap.up, -screen.up, Vector3.right));
        }
        else
        {
            angleBetweenLeapScreenT = autoConfig.CentreRotationAroundZero(Vector3.SignedAngle(leap.up, screen.up, Vector3.left));
        }
    }