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)
Syntax
public static Matrix CreateWorld (
Vector3 position,
Vector3 forward,
Vector3 up
)
Parameters
- position
Position of the object. This value is used in translation operations. - forward
Forward direction of the object. - up
Upward direction of the object; usually [0, 1, 0].
Return Value
The created world matrix.
Remarks
This matrix includes rotation and translation, but not scaling.
See Also
Reference
Matrix Structure
CreateScale
Matrix Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune