matrix_set

Set the given matrix type to the values stored in a (previously created) matrix array.

Syntax:

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


Description

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




Example:

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".


Back: 3D Transformations
Next: matrix_build
© Copyright YoYo Games Ltd. 2018 All Rights Reserved