[]
Creates a world matrix with the specified parameters.
public static Matrix4x4 World(Vector3 position, Vector3 forward, Vector3 up)
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]. |
Type | Description |
---|---|
Matrix4x4 | The world matrix. |