Skip to content

Releases: Prozi/detect-collisions

v3.4.0

17 Apr 19:22
Compare
Choose a tag to compare

this time I added some more tests (around 10+) and implemented Line class this time.

also added this to stress test to present

v3.3.0

17 Apr 18:01
Compare
Choose a tag to compare

added Ovals and updated readme and demos to reflect that

now you can have a rotatable squashed circle if you need

v3.2.7

13 Apr 15:13
Compare
Choose a tag to compare
  • 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

13 Mar 01:46
Compare
Choose a tag to compare
  • 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

08 Feb 16:42
Compare
Choose a tag to compare

stable

v3.1.2

04 Dec 15:21
Compare
Choose a tag to compare

updated docs

v3.1.0

26 Nov 08:33
Compare
Choose a tag to compare

moved sat/rbush types from devDependencies to dependencies because of

#16
#17

v3.0.10

15 Nov 00:24
Compare
Choose a tag to compare
  • updated readme to reflect SAT and RBush changes from 3.0+
  • added circleci automatic tests
  • added test for perfect overlap circles

v3.0.9

14 Nov 22:28
Compare
Choose a tag to compare
  • bump dependencies

  • add missing out folder from typescript with types - possibly related to #16

v3.0.2

11 Nov 17:24
Compare
Choose a tag to compare

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

#27 (comment)