TRANSLATE MATRIX

From Macros Wiki
Jump to: navigation, search

Up

Command

TRANSLATE_MATRIX <matrix array>, <dx>, <dy>, <dz>,


Modify a matrix by applying a translation.

Parameters

<matrix array>
Name of Matrix variable
<dx>
The distance in the X axis direction.
<dy>
The distance in the Y axis direction.
<dz>
The distance in the Z axis direction.

Example

GLOBAL Matrix1(12)


GET_SCALE_MATRIX Matrix1, 0.25
TRANSLATE_MATRIX Matrix1, 3, 1, -2


This will get a matrix to scale to 1/4 size, then translate by 3 in X, 1 in Y and -2 in Z.