1 | function d3d_transform_set_rotation_x(argument0) //gml_Script_d3d_transform_set_rotation_x |
2 | { |
3 | var c = dcos(argument0) |
4 | var s = dsin(argument0) |
5 | var m = matrix_build_identity() |
6 | m[5] = c |
7 | m[6] = (-s) |
8 | m[9] = s |
9 | m[10] = c |
10 | matrix_set(2, m) |
11 | } |