All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.6.0 - 2020-02-15
- Added
TestResult
type which is returned fromtest()
and can be checked directly for collisions or passed tointersect()
to further calculate an intersection - Added
IntersectResult
type which is returned fromintersect()
and can be used to calculate collision normals, separation distances, etc - Added
Headbutt.testAndIntersect()
function which is a shortcut for testing and then calculating the intersection if a collision is found
- Changed
Headbutt
interface from interacting with an object with internal state to static pure functions (i.e. callHeadbutt.test()
instead ofnew Headbutt().test()
)
0.5.0 - 2020-02-15
- Added transformation support to all provided shape classes
- Added tests for most shapes (not lines)
- Added tests for transformed shape collision calculations
- Added API documentation to all public interfaces
- Changed
Shape.origin
getter/setter to a singleShape.centre
getter - Changed shape contructors to align with using transforms instead of an initial offset
0.4.0 - 2019-02-21
- Added 3D shapes
- Added 2D shapes
- Added some API documentation
- Split 2D and 3D into their own packages:
headbutt.twod
andheadbutt.threed
- Changed
Shape.centre
toShape.origin
0.3.0 - 2017-07-01
- Initial release