Releases: Prozi/detect-collisions
Releases · Prozi/detect-collisions
v3.4.0
v3.3.0
v3.2.7
- fixed bug in readme #23
- fixed a major bug with angle + box resulted in updateAABB calculating points wrong and added test for this (fixes #24)
- improved boxes so they now if (box.isTrigger) similarly like polygons, get drawn (system.draw()) with dashed lines
- improved the stress test to have boxes and angle to present the fix https://prozi.github.io/detect-collisions/demo/?stress
v3.2.6
-
added more tests,
-
updated dependencies, trimmed devDependencies
-
merged a merge request by @amir-arad to narrow TS typings on bodies, so you can now:
if (body.type === 'Circle') { // body is of type TBody
body.r = radius; // inside the if statement, body is of type Circle, thank you Typescript!
}
v3.2.1
v3.1.2
v3.1.0
v3.0.10
v3.0.9
v3.0.2
since this version the library is powered by RBush and SAT
inspired by #5
I rewrote the library from scratch, while keeping similar (but not same) api and tests and demos
honorable mention https://github.com/TuurDutoit/crash/
BREAKING CHANGES