Example #1
0
        /// <summary>
        /// Only updates the view matrix's position variables.
        /// </summary>
        private void UpdateViewPosition()
        {
            int i = 1;

            view.Row3.X = -Vector3.Dot(rightAxis, Position) * i;
            view.Row3.Y = -Vector3.Dot(upAxis, Position) * i;
            view.Row3.Z = -Vector3.Dot(lookAxis, Position) * i;
        }