Beispiel #1
0
        /// <summary>
        /// rotates the camera about the angle down. If KeepCenter = true the <see cref="Anchor"/> is fix.
        /// </summary>
        /// <param name="Angle">the angle for the rotation.</param>
        /// <param name="KeepCenter">fixes the <see cref="Anchor"/></param>
        public void LookDown(float Angle, bool KeepCenter)
        {
            LineType L = new LineType();

            if (KeepCenter)
            {
                L = new LineType(Anchor, Base.BaseX);
            }
            else
            {
                L = new LineType(Position, Base.BaseX);
            }


            Device.ProjectionMatrix = Device.ProjectionMatrix * Matrix.Rotation(L, Angle);
            Device.Refresh();
        }