Releases: hamaluik/headbutt
Releases · hamaluik/headbutt
Static pure function interface
Added
- Added
TestResulttype which is returned fromtest()and can be checked directly
for collisions or passed tointersect()to further calculate an intersection - Added
IntersectResulttype 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
- Changed
Headbuttinterface from interacting with an object with internal state
to static pure functions (i.e. callHeadbutt.test()instead ofnew Headbutt().test())
Shape Transforms
Added
- 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
- Changed
Shape.origingetter/setter to a singleShape.centregetter - Changed shape contructors to align with using transforms instead of an initial offset
Normalized Shape API
Added
- Added 3D shapes
- Added 2D shapes
- Added some API documentation
Changed
- Split 2D and 3D into their own packages:
headbutt.twodandheadbutt.threed - Changed
Shape.centretoShape.origin
Initial release
- 2D shape collision checking
- 2D shape intersection calculations
- 3D shape collision checking