matrix_set(type, matrix)
| Argument | Description |
|---|---|
| type | The type of matrix to set the values of (see the constants listed below). |
| matrix | The matrix array to use for setting the given matrix. |
Returns: N/A
This function takes a 16 value 1D array (which you can create using the matrix_build or matrix_get functions) and uses
it to set one of the following three matrix types:
| Constant | Description |
|---|---|
| matrix_view | The current view matrix |
| matrix_projection | The current projection matrix |
| matrix_world | The current world matrix |
matrix_set(matrix_world, m_array);
The above code will set the values of the current world matrix to those stored in the array matrix "m_array".