You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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