danfis / libccd

Library for collision detection between two convex shapes
Other
478 stars 108 forks source link

ccdGJKPenetration() returns 0 when contact and -1 when not contact? #16

Closed ChenguangZhang closed 8 years ago

ChenguangZhang commented 8 years ago

The markdown page says return values are true/false when contact/not-contact, but several tests show the return values are 0/-1 respectively, so 0 corresponds to true and -1 correspond to false? This is contradictory to the common C/C++ practice.

danfis commented 8 years ago

Intersect() functions returns true/false, but Penetration() functions return 0 for success and -1 otherwise. I will check the manual and fix it.