Closed MeroVinggen closed 1 year ago
that is good observation and true, but I didnt intend to use utils function for the end-user
might have to rethink that
still, you've found a bug
fixed here https://github.com/Prozi/detect-collisions/commit/a71ea395720c52a16277bec3c807b5d344bfc53b
will be added to 7.0
I used circleOutsidePolygon function to detec box is not collided to circle and I'm getting false
My code:
Also need functions to detect collision on each Body type, like there is intersectLineCircle & intersectLinePolygon that returns array, but if needed only to detec fact of collision, not making extra operations to gather all collision points, this functions are not the best variant.