Terraria.Player.UpdateSocialShadow C# (CSharp) Method

UpdateSocialShadow() public method

public UpdateSocialShadow ( ) : void
return void
        public void UpdateSocialShadow()
        {
            for (int index = 2; index > 0; --index)
                this.shadowDirection[index] = this.shadowDirection[index - 1];
            this.shadowDirection[0] = this.direction;
            ++this.shadowCount;
            if (this.shadowCount == 1)
            {
                this.shadowPos[2] = this.shadowPos[1];
                this.shadowRotation[2] = this.shadowRotation[1];
                this.shadowOrigin[2] = this.shadowOrigin[1];
            }
            else if (this.shadowCount == 2)
            {
                this.shadowPos[1] = this.shadowPos[0];
                this.shadowRotation[1] = this.shadowRotation[0];
                this.shadowOrigin[1] = this.shadowOrigin[0];
            }
            else
            {
                if (this.shadowCount < 3)
                    return;
                this.shadowCount = 0;
                this.shadowPos[0] = this.position;
                this.shadowPos[0].Y += this.gfxOffY;
                this.shadowRotation[0] = this.fullRotation;
                this.shadowOrigin[0] = this.fullRotationOrigin;
            }
        }
Player