WaveEngine.Components.Graphics3D.Spinner.Update C# (CSharp) Method

Update() protected method

Updates the transform of the model so it rotates along the defined axis.
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The game time.
return void
        protected override void Update(TimeSpan gameTime)
        {
            float totalSeconds = (float)gameTime.TotalSeconds;

            // angle += increase;
            this.angle.X = this.angle.X + (this.increase.X * totalSeconds);
            this.angle.Y = this.angle.Y + (this.increase.Y * totalSeconds);
            this.angle.Z = this.angle.Z + (this.increase.Z * totalSeconds);

            this.transform.LocalRotation = this.angle;
        }