Exemple #1
0
    void CalculateScreenAndCameraValues(Vector3 bottomPos, Vector3 topPos)
    {
        autoConfig.SetTopPos(topPos);
        autoConfig.SetBottomPos(bottomPos);

        var setup = autoConfig.CalculateConfigurationValues(bottomPos, topPos);

        bottomEdgeInLeapSpaceM = autoConfig.BottomCentreFromTouches(bottomPos, topPos);
        topEdgeInLeapSpaceM    = autoConfig.TopCentreFromTouches(bottomPos, topPos);

        leapOffsetInScreenSpaceM = setup.LeapPositionRelativeToScreenBottomM;
        angleBetweenLeapScreenM  = setup.LeapRotationD.x;
        screenHeightM            = setup.ScreenHeightM;

        bottomTouchInLeapSpaceM = bottomPos;
        topTouchInLeapSpaceM    = topPos;
    }