Terraria.Player.DryCollision C# (CSharp) Method

DryCollision() public method

public DryCollision ( bool fallThrough, bool ignorePlats ) : void
fallThrough bool
ignorePlats bool
return void
        public void DryCollision(bool fallThrough, bool ignorePlats)
        {
            this.velocity = Collision.TileCollision(this.position, this.velocity, this.width, !this.onTrack ? this.height : this.height - 10, fallThrough, ignorePlats, (int)this.gravDir);
            if (Collision.up && (double)this.gravDir == 1.0)
                this.jump = 0;
            if (this.waterWalk || this.waterWalk2)
            {
                Vector2 vector2 = this.velocity;
                this.velocity = Collision.WaterCollision(this.position, this.velocity, this.width, this.height, fallThrough, false, this.waterWalk);
                if (vector2 != this.velocity)
                    this.fallStart = (int)((double)this.position.Y / 16.0);
            }
            Player player = this;
            Vector2 vector2_1 = player.position + this.velocity;
            player.position = vector2_1;
        }
Player