matrix_get(type)
Argument | Description |
---|---|
type | The type of matrix to get the values of (see the constants listed below). |
Returns: Array
This function returns a 1D array of 16 values, corresponding to
the given 4x4 matrix type. The available matrices are view,
projection and world, for which you would use one of the following
constants:
Constant | Description |
---|---|
matrix_view | The current view matrix |
matrix_projection | The current projection matrix |
matrix_world | The current world matrix |
v_array = matrix_get(matrix_view);
The above code will get the values of the current view matrix and populate the array "v_array" with them.