# Trans_Translate

Arithmetics
5.1 OC
array
int dx Displacement in X direction
int dy Displacement in Y direction.
int dz Displacement in Z direction.
Returns a 3x4 translation matrix. It can be used as a transformation for AttachMesh or for the "PictureTransformation" or "MeshTransformation" properties (see Meshes).
A value of 1000 for `dx`, `dy` or `dz` displaces the graphics by one unit to the right, to the bottom or to the front, respectively. For negative values displacement goes into the opposite direction. For graphics that are rendered directly in the game (such as the one influenced by the "MeshTransformation" property) one unit in X or Y corresponds to one pixel. All parameter values are given in one-tenth of a percent (1000 = 100%) since there are no floating point numbers in Clonk.
this
["PictureTransformation"] = Trans_Translate(0, 0, 7000);
Displaces the picture graphics of the calling object by 7 units towards the camera. This causes it to be displayed larger because of the perspective projection.
Trans_Identity
Trans_Rotate
Trans_Scale
Trans_Mul
AttachMesh
SetAttachTransform
Clonk-Karl
2010-04