Prozi / detect-collisions

Points, Lines, Boxes, Polygons (also hollow), Ellipses, Circles. RayCasting, offsets, rotation, scaling, bounding box padding, flags for static and ghost/trigger bodies
https://prozi.github.io/detect-collisions/
MIT License
206 stars 22 forks source link

fix: bbox check uses bodyA twice #79

Closed RedPhoenixQ closed 4 months ago

RedPhoenixQ commented 4 months ago

In checkCollision the bbox of bodyA was used twice. When this is fixed checkCollision returns early and this PR includes a test for this case

Prozi commented 4 months ago

@RedPhoenixQ thanks for contribution! will be part of a new release soon

nice catch!