Add some more tests for the ramp.

These tests pass, but show the basic polygon testing working (just not the
collision handling and thus fraction determination).
This commit is contained in:
Bill Currie 2011-11-27 14:22:32 +09:00
parent 750b5ba0ed
commit 174f381125

View file

@ -362,6 +362,10 @@ test_t tests[] = {
{"Box, Ramp", &box, &hull_ramp,
{ 0, 0, 16}, {0, 0, 0}, { 0.5, 0, 0, 1, 0, 4}},
{"Box, Ramp", &box, &hull_ramp,
{-16, 0, 8}, {16, 0, 8}, { 1, 0, 0, 1, 0, 4}},
{"Box, Ramp", &box, &hull_ramp,
{-16, 0, 5}, {16, 0, 5}, { 0.125, 0, 0, 1, 0, 4}},
};
#define num_tests (sizeof (tests) / sizeof (tests[0]))