Releases: Prozi/detect-collisions
Releases · Prozi/detect-collisions
v6.7.0
- deprecated
getPotentials()
- please just usecheckOne()
orcheckAll()
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()
andcheckAll()
to not usegetPotentials()
inside - fixed
drawBVH()
to draw more, what I believe now is the full hierarchy of boxes (see demos - checkbox draw BVH) checkOne
andcheckAll
both now accept a function that returns boolean, if it returns true, then the checking is ended (this was already forcheckOne
but not forcheckAll
)- setAngle/setOffset returns the
Body
, like it should since it extendsSAT.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
v6.6.0
v6.5.4
v6.5.1
v6.5.0
v6.4.1
- feat: added scale to stress demo
- feat: added scaleX, scaleY getters
- fix: fixed center() method was missing backing up points when used with setScale
- fix: optimisation - setScale on circle doesn't update AABB anymore - you have to do it yourself like with Polygon
- fix: types should allow body.setScale(x, y) even tho y is ignored for circle. I will test this shortly
v6.4.0
- feat: another great feature for from @Codezilluh which is scaling bodies -
scale
getter andsetScale
functions - readme has been updated accordingly
v6.3.14
v6.3.11
v6.3.7
- fix: concave polygons not working correctly on circles with concave fixes - #33
- fix: stress test no bounce case
- feat: added
center(), angle, setAngle()
to all bodies for api consistency (they're just kind of useless in case ofPoints, Ellipses, Circles
- but at least keep value) - feat: upgraded readme