Update() private method

private Update ( ) : void
return void
        /// <summary>
        /// To get key events, remember that you must call before to Keyboard.Focus(this). Usually you call to this method on MouseDown.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UserControl_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Up)
            {
                spot.AngleXInDegrees += 10;
            }
            if (e.Key == Key.Down)
            {
                spot.AngleYInDegrees += 10;
            }

            spot.Update();
        }
        void AddSpotLight()
        {
            spot = new SpotLight(500);

            spot.Attenuation = Attenuation.None;

            spot.FallOff = 50;
            spot.HotSpot = 20;

            scene.Root.AddChildren(spot);

            spot.Position = new AIOEngine.MathSpace.Vector3(0, 6, 0);

            spot.Color = new AIOEngine.MathSpace.Vector4(1, 1, 1, 1);

            //spot.Direction = new AIOEngine.MathSpace.Vector3(0, -1, 0);
            // As the default Direction is poinint towards -Z, we rotate to get Vector3(0, -1, 0)
            spot.AngleXInDegrees = -90;
            spot.Update();

            scene.Lights.Add(spot);
        }