Releases: jriecken/sat-js
Releases · jriecken/sat-js
0.9.0
0.8.0
0.7.1
0.7.0
0.6.0
0.5.0
- (POTENTIALLY BREAKING CHANGE) Make
recalconPolygonmore memory efficient. It no longer does any allocations. ThecalcPoints,edgesandnormalsvector arrays are reused and only created insetPointswhen the number of new points is different than the current ones. (Fixes #15)points,angleandoffsetcan no longer be manually changed. ThesetPoints,setAngle, andsetOffsetmethods must be used.- As a result of this, the
recalcmethod is no longer part of the API.
- Add
getAABBtoPolygonandCirclethat calculate Axis-Aligned Bounding Boxes - thanks TuurDutoit! (Fixes #17)
0.4.1
0.4
- Add
clonemethod toVectorthat returns a new vector with the same coordinates. - Add
angleandoffsettoPolygonthat are used to modify the computed collision polygon (Fixes #3, Fixes #4)- The
rotateandtranslatemethods still exist onPolygonbut they modify the originalpointsof the polygon, wherasangleandoffsetdo not modify the original points, and are instead applied as computed values.
- The
- Add
setPoints,setAngle, andsetOffsetmethods toPolygon
0.3
0.2
- Reformat comments so that they can be run through
doccoto create an annotated source file. - Fix/optimize compilation with the Closure Compiler in advanced mode (previously it was mangling some important properties)
- Wrap the code in a UMD declaration so that it works:
- Just inserting it as a
<script> - Using an AMD loader
- In Node.js
- Just inserting it as a
- Add
rotatemethod toVectorandPolygon. - Add
translatemethod toPolygon - Add some examples (using Raphael.js for display)