Sets the transformation to a scaling with the indicated amounts.


d3d_transform_add_scaling(xs, ys, zs)

Argument Description
xs The x scale amount.
ys The y scale amount.
zs The z scale amount.

Returns: N/A


This transform can be used to scale the object currently being drawn, with the amount being scaled relative to any previous transforms rather than absolute (as would be the case with d3d_transform_set_scaling).


var tex = background_get_texture(bck_Wall); d3d_transform_set_identity();
d3d_transform_add_scaling(2, 2, 2);
d3d_draw_block(-50, -50, -50, 50, 50, 50, tex, 100, 100);

The above code tells GameMaker: Studio to draw the block and then scale it twice as much over any previous transforms.

Back: 3D Drawing
Next: d3d_transform_add_rotation_x
© Copyright YoYo Games Ltd. 2015 All Rights Reserved