From 93b98359e700bcd04cdda2b7c0ad218c205c02ef Mon Sep 17 00:00:00 2001 From: mm Date: Mon, 7 Oct 2019 11:59:28 +0100 Subject: [PATCH] Fix issue #3 --- lib/src/openGJK.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/openGJK.c b/lib/src/openGJK.c index b9bbee3..a964726 100644 --- a/lib/src/openGJK.c +++ b/lib/src/openGJK.c @@ -720,7 +720,7 @@ inline static void support( struct bd *body, double *v ) { maxs = dotProduct(body->s, v); - for (i = 1; i < body->numpoints; ++i) { + for (i = 0; i < body->numpoints; ++i) { vrt = body->coord[i]; s = dotProduct (vrt, v); if ( s > maxs ){