Skip to content

hxcollision 1.1.0 stable

Compare
Choose a tag to compare
@ruby0x1 ruby0x1 released this 07 Jun 01:15
· 98 commits to master since this release

This release adds many bug fixes and some new examples thanks to @Dvergar, documentation, and a much needed api cleanup of the code toward a more consistent reliable library.

  • Added documentation and clean up of code
  • Renamed Vector2D to Vector and cleaned up code to ONLY what is needed. This class is meant to be as small and easy to integrate as possible.
  • Refactored for easier maintaining in embedded libraries
  • Added documentation and clean up of code
  • Renamed BaseShape to Shape, continued refactoring
  • Renamed Collision.testShapes to Collision.test
  • Renamed Collision.testShapeList to Collision.testShapes
  • Renamed Collision.rayCollision to Collision.ray
  • Fixed various bugs in collisions
  • Fixed separation/unitVector behaviour (signs bugs)
  • Fixed bug with Polygon/Polygon collisions not returning best vectors
  • Fixed bug where you couldn't beginFill using OpenFLDrawer
  • Fixed collisionData in CheckCircles, shape2 wasn't assigned.
  • separation/unitVector is now bound to shape1
  • Added 2 samples (usage2 & usage3)
  • Added drawVector in OpenFLDrawer showing vector direction
  • Added drawShape in ShapeDrawer, will cast proper types and call appropriate drawing functions.