예제 #1
0
        /// <summary>
        /// Default cover settings.
        /// </summary>
        public static CoverSettings Default()
        {
            var settings = new CoverSettings();

            settings.CanUseCorners            = true;
            settings.TallThreshold            = 1.1f;
            settings.LowCapsuleHeight         = 0.75f;
            settings.RotationSpeed            = 20.0f;
            settings.EnterDistance            = 0.15f;
            settings.LeaveDistance            = 0.25f;
            settings.PivotSideMargin          = 0.5f;
            settings.CornerAimTriggerDistance = 0.6f;
            settings.TallSideEnterRadius      = 0.15f;
            settings.TallSideLeaveRadius      = 0.05f;
            settings.TallCornerOffset         = 0.25f;
            settings.LowSideEnterRadius       = 0.3f;
            settings.LowSideLeaveRadius       = 0.2f;
            settings.LowCornerOffset          = 0.4f;
            settings.DirectionChangeDelay     = 0.25f;
            settings.BackDelay    = 0.5f;
            settings.CornerOffset = new Vector3(1, 0, 0);
            settings.Update       = CoverUpdateSettings.Default();
            settings.Angles       = CoverAngleSettings.Default();

            return(settings);
        }
예제 #2
0
        /// <summary>
        /// Default cover settings.
        /// </summary>
        public static CoverSettings Default()
        {
            var settings = new CoverSettings();

            settings.CanUseTallCorners        = true;
            settings.CanUseLowCorners         = false;
            settings.ExitBack                 = 120;
            settings.LowCapsuleHeight         = 0.75f;
            settings.LowAimCapsuleHeight      = 1.25f;
            settings.LowRotationSpeed         = 10.0f;
            settings.TallRotationSpeed        = 15.0f;
            settings.EnterDistance            = 0.15f;
            settings.LeaveDistance            = 0.25f;
            settings.ClimbDistance            = 0.5f;
            settings.MinCrouchDistance        = 0.2f;
            settings.MaxCrouchDistance        = 1.5f;
            settings.PivotSideMargin          = 0.5f;
            settings.CornerAimTriggerDistance = 0.6f;
            settings.TallSideEnterRadius      = 0.15f;
            settings.TallSideLeaveRadius      = 0.05f;
            settings.LeftTallCornerOffset     = 0.2f;
            settings.RightTallCornerOffset    = 0.2f;
            settings.LeftLowCornerOffset      = 0.4f;
            settings.RightLowCornerOffset     = 0.4f;
            settings.LowSideEnterRadius       = 0.3f;
            settings.LowSideLeaveRadius       = 0.2f;
            settings.DirectionChangeDelay     = 0.25f;
            settings.CornerOffset             = new Vector3(0.8f, 0, 0);
            settings.Update = CoverUpdateSettings.Default();

            return(settings);
        }
예제 #3
0
        /// <summary>
        /// Default cover update settings.
        /// </summary>
        public static CoverUpdateSettings Default()
        {
            var settings = new CoverUpdateSettings();

            settings.IdleNonCover   = 10;
            settings.IdleCover      = 2;
            settings.MovingNonCover = 0.5f;
            settings.MovingCover    = 0.1f;

            return(settings);
        }