Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_verlet_collision

(view raw script w/o annotations or w/e)
1
function scr_verlet_collision
scr_verlet_collision

function scr_verlet_collision() //gml_Script_scr_verlet_collision { for (var i = 0; i < array_length(points); i++) { var p = points[i] if (!p[4]) { if position_meeting(p[0], p[1], argument[0]) return true; } } }
() //gml_Script_scr_verlet_collision
2
{
3
    for (var i = 0; i < array_length(points); i++)
4
    {
5
        var p = points[i]
6
        if (!p[4])
7
        {
8
            if position_meeting(p[0], p[1], argument[0])
9
                return true;
10
        }
11
    }
12
}