BBMOD_Matrix.Mul

A function defined in BBMOD_Matrix.gml

Mul(_matrix, ...)

Description

Multiplies matrices and returns the result as a new matrix.

Arguments

Name Type Description
_matrix Struct.BBMOD_Matrix The first matrix to multiply with.

Returns

Struct.BBMOD_Matrix The resulting matrix.

Example

var _world = new BBMOD_Matrix().FromWorld();
var _view = new BBMOD_Matrix().FromView();
var _projection = new BBMOD_Matrix().FromProjection();
var _worldViewProjection = _world.Mul(_view, _projection);

Please note that this example only shows that you can pass multiple matrices to this method. If you would actually like to get the world * view * projection matrix, you can simply call BBMOD_Matrix.FromWorldViewProjection.

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.