UHSampleGame.CoreObjects.StaticModel.UpdateTransforms C# (CSharp) Method

UpdateTransforms() public method

public UpdateTransforms ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public void UpdateTransforms(GameTime gameTime)
        {
            if (glow == true)
            {
                elapsedGlowTime += gameTime.ElapsedGameTime.Milliseconds;
                if (elapsedGlowTime >= maxGlowTime)
                {
                    elapsedGlowTime = 0;
                    if (glowDecreasing)
                    {
                        currentGlowScale -= 0.1f;
                    }
                    else
                    {
                        currentGlowScale += 0.1f;
                    }

                    if (currentGlowScale <= endGlowScale || currentGlowScale >= startGlowScale)
                    {
                        glowDecreasing = !glowDecreasing;
                    }
                }

                transforms = Matrix.CreateScale(currentGlowScale) *
                    //rotationMatrixX *
                    rotationMatrixY *
                    //rotationMatrixZ *
                    Matrix.CreateTranslation(Position);
            }
            else
            {
                transforms = Matrix.CreateScale(scale) *
                    //rotationMatrixX *
                        rotationMatrixY *
                    //rotationMatrixZ *
                        Matrix.CreateTranslation(Position);
            }
        }