Page 1 of 1

StepManager.MinimumDownStepHeight is using wrong variable

Posted: Mon Apr 02, 2012 5:50 am
by ecosky
Hi,

I noticed the StepManager.MinimumDownStepHeight is using the wrong variable,

Code: Select all

        float minimumDownStepHeight = .1f;
        /// <summary>
        /// Gets or sets the minimum down step height.  Down steps which are smaller than this are simply ignored by the step system; instead, the character falls.
        /// If the new step location has traction, the intermediate falling will not remove traction from the character.  The only difference is that the character isn't
        /// teleported down when the step is too small.
        /// </summary>
        public float MinimumDownStepHeight
        {
            get
            {
                return maximumStepHeight;
            }
            set
            {
                if (maximumStepHeight < 0)
                    throw new Exception("Value must be nonnegative.");
                maximumStepHeight = value;
            }
        }
Thanks again for Bepu, it's great!

Re: StepManager.MinimumDownStepHeight is using wrong variabl

Posted: Mon Apr 02, 2012 4:16 pm
by Norbo
Woops! Thanks!