StepManager.MinimumDownStepHeight is using wrong variable

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
ecosky
Posts: 69
Joined: Fri Nov 04, 2011 7:13 am
Contact:

StepManager.MinimumDownStepHeight is using wrong variable

Post 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!
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: StepManager.MinimumDownStepHeight is using wrong variabl

Post by Norbo »

Woops! Thanks!
Post Reply