Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Matrix.CreateLookAt Method (Vector3, Vector3, Vector3, Matrix)

Creates a view matrix.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static void CreateLookAt (
         ref Vector3 cameraPosition,
         ref Vector3 cameraTarget,
         ref Vector3 cameraUpVector,
         out Matrix result
)

Parameters

cameraPosition
The position of the camera.
cameraTarget
The target towards which the camera is pointing.
cameraUpVector
The direction that is "up" from the camera's point of view.
result
[OutAttribute] The created view matrix.

View space, sometimes called camera space, is similar to world space in that it is typically used for the entire scene. However, in view space, the origin is at the viewer or camera.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.