[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.World

World Method

World(Vector3, Vector3, Vector3)

Creates a world matrix with the specified parameters.

Declaration
public static Matrix4x4 World(Vector3 position, Vector3 forward, Vector3 up)
Parameters
Type Name Description
Vector3 position

The position of the object (used in translation operations).

Vector3 forward

The forward direction of the object.

Vector3 up

The upward direction of the object. Its value is usually [0, 1, 0].

Returns
Type Description
Matrix4x4

The world matrix.