kroitor / gjk.c

Gilbert-Johnson-Keerthi (GJK) collision detection algorithm in 200 lines of clean plain C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test case compares identical shapes

NilsEnevoldsen opened this issue · comments

gjk.c/gjk.c

Lines 196 to 200 in 287d86a

vec2 vertices2[] = {
{ 4.0f, 11.0f },
{ 5.0f, 5.0f },
{ 9.0f, 9.0f },
};

Did you intend this to be the following?

    vec2 vertices2[] = {
        { 5.0f, 7.0f },
        { 7.0f, 3.0f },
        { 10.0f, 2.0f },
        { 12.0f, 7.0f },
    };