Export (0) Print
Expand All

Matrix.CreateWorld Method (Vector3, Vector3, Vector3)

Creates a world matrix with the specified parameters.

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

public static Matrix CreateWorld (
         Vector3 position,
         Vector3 forward,
         Vector3 up
)

Parameters

position
Type: Vector3
Position of the object. This value is used in translation operations.
forward
Type: Vector3
Forward direction of the object.
up
Type: Vector3
Upward direction of the object; usually [0, 1, 0].

Return Value

The created world matrix.

This matrix includes rotation and translation, but not scaling.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show:
© 2014 Microsoft