d3d_transform_set_rotation_x(angle)
Argument | Description |
---|---|
angle | The angle to rotate around the x-axis. |
Returns: N/A
This function will rotate the object around the x-axis by the specified amount (in degrees).
var tex = background_get_texture(bck_Wall);
d3d_transform_set_identity();
d3d_transform_set_rotation_x(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 x-axis before drawing it.