d3d_transform_add_rotation_y

Adds a rotation around the y-axis with the indicated amount.

Syntax:

d3d_transform_add_rotation_y(angle)


Argument Description
angle The angle to rotate around the y-axis.


Returns: N/A


Description

This function will rotate the object around the y-axis by the specified amount (in degrees), relative to any previously performed transforms.


Example:

var tex = background_get_texture(bck_Wall); d3d_transform_set_identity();
d3d_transform_add_rotation_y(90);
d3d_draw_block(-50, -50, -50, 50, 50, 50, tex, 100, 100);
d3d_transform_set_identity();

The above code tells GameMaker: Studio to rotate the block 90 degrees along the y-axis (in addition to any previous transforms) before drawing it.


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