BBMOD_Matrix.MulSelf

A function defined in BBMOD_Matrix.gml

MulSelf(_matrix, ...)

Description

Multiplies matrices and stores the result into self.

Arguments

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

Returns

Struct.BBMOD_Matrix Returns self.

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 September 07, 2024 using GMDoc.