Matrix.CreateLookAt Method (Vector3, Vector3, Vector3)
XNA Game Studio 2.0
Creates a view matrix.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
public static Matrix CreateLookAt ( Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector )
Parameters
- cameraPosition
- The position of the camera.
- cameraTarget
- The direction that the camera is pointing.
- cameraUpVector
- The direction that is "up" from the camera's point of view.
Return Value
The created view matrix.