StretchyTanks.StretchyTanks.rescaleModel C# (CSharp) Method

rescaleModel() public method

public rescaleModel ( ) : void
return void
        public virtual void rescaleModel()
        {
            //transform.GetChild(0).GetChild(0).GetChild(0).localScale = new Vector3(radialFactor, radialFactor, stretchFactor);
            /*if (origScale.x < 0)
                origScale = transform.GetChild(0).GetChild(0).localScale;*/
            Vector3 scale = new Vector3(radialFactor, stretchFactor, radialFactor);
            scale.Scale(origScale);
            transform.GetChild(0).GetChild(0).localScale = scale;
        }