WarTornLands.Entities.Modules.Think.Parts.JumpAbility.Update C# (CSharp) Method

Update() public method

Updates the part. May manipulate the Height value of respective owner.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The game time.
return void
        public void Update(GameTime gameTime)
        {
            float perc = _cm.GetPercentage(_cJump);
            /*_owner.Height =
                _owner.BaseHeight +
                perc < .5f ? 2 * perc : 2 * (1 - perc)
                * Zenit;*/
            _owner.Altitude = (float) (Math.Pow(_cm.GetPercentage(_cJump) * 2 - 1, 2) - 1) * -Zenit;
        }