Skip to content

v6.7.0

Compare
Choose a tag to compare
@Prozi Prozi released this 18 Jan 23:21
· 169 commits to master since this release
  • deprecated getPotentials() - please just use checkOne() or checkAll() instead - but I will not remove it, reasoning behind this is that inside this requires a filter to check is a potential returned body not being itself. so when you get 1000 potentials you will iterate over that twice
  • optimized checkOne() and checkAll() to not use getPotentials() inside
  • fixed drawBVH() to draw more, what I believe now is the full hierarchy of boxes (see demos - checkbox draw BVH)
  • checkOne and checkAll both now accept a function that returns boolean, if it returns true, then the checking is ended (this was already for checkOne but not for checkAll)
  • setAngle/setOffset returns the Body, like it should since it extends SAT.js
  • ellipses are isCentered = true, makes sense
  • added a few more tests ("Box even without inserting to system, gives collision results", others)
  • improve FPS counter in demos to check every second (more accurate)
  • reduce library size by removing demo from bundled files
  • readme part about benchmark updated, removed part about getPotentials(), other improvements/updates to readme
  • remove too often getOffsetWithAngle() (optimization)
  • optimize ensureConvex()
  • triangles are isConvex = true
  • export SATPolygon from SAT.js so it can be used by consumer of this library
  • fix: moving concave polygon (#43)
  • feat: optimize raycast to reuse same ray and not create Lines everytime
  • fix: rbush.toJSON, fromJSON functionality