Export (0) Print
Expand All

Matrix.CreateWorld Method (Vector3%, Vector3%, Vector3%, Matrix%)

Creates a world matrix with the specified parameters.

Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)

public static void CreateWorld(
	ref Vector3 position,
	ref Vector3 forward,
	ref Vector3 up,
	out Matrix result
)

Parameters

position
Type: Microsoft.Xna.Framework.Vector3%
Position of the object. This value is used in translation operations.
forward
Type: Microsoft.Xna.Framework.Vector3%
Forward direction of the object.
up
Type: Microsoft.Xna.Framework.Vector3%
Upward direction of the object; usually [0, 1, 0].
result
Type: Microsoft.Xna.Framework.Matrix%
[OutAttribute] The created world matrix.

This matrix includes rotation and translation, but not scaling.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft