Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_d3d_transform_add_translation

(view raw script w/o annotations or w/e)
1
function d3d_transform_add_translation(argument0, argument1, argument2) //gml_Script_d3d_transform_add_translation
2
{
3
    var mT = matrix_build_identity()
4
    mT[12] = argument0
5
    mT[13] = argument1
6
    mT[14] = argument2
7
    var m = matrix_get(2)
8
    var mR = matrix_multiply(m, mT)
9
    matrix_set(2, mR)
10
}