D3d transform set translation

Explanation
A translation slides the origin of the world by the indicated amount. By setting a rotation, setting a translation to the position of the object and drawing the object at (0,0,0), you can rotate it easily.

Example
Suppose the following code is executed: d3d_transform_set_identity; d3d_transform_add_translation(0,2,4); d3d_draw_block(-1,-1,-1,1,1,1,-1,-1,-1); d3d_transform_set_identity; The line d3d_transform_add_translation(0,2,4); tells Game Maker to draw the block at (0,2,4).