# Trans_Mul

**Category: **Arithmetics

**Since engine version: **1.0 OC

## Description

Multiplies two or more 3x4 transformation matrices in the given order. This way the effects of more than one transformation can be combined. The result can be used as a transformation for

AttachMesh or for the "PictureTransformation" or "MeshTransformation" properties (see

Meshes).

## Syntax

array Trans_Mul(array first, array second, array ...);

## Parameters

- first:
- second:
Second matrix.

- ...:
[opt]
An arbitrary number of other matrices.

## Example

this[*"PictureTransformation"*] = Trans_Mul(Trans_Translate(7000), Trans_Rotate(20, 0, 1, 0));

Rotates the picture graphics of the calling object by 20 degrees around the Y axis and afterwards displaces it by 7 units into Z direction towards the camera.

Clonk-Karl, 2010-04