mirror of
https://github.com/vrld/HC.git
synced 2024-12-18 16:14:20 +00:00
c681391033
Polygon triangulation bug: In some cases Kongs triangulation algorithm produces triangles with collinear points. The Polygon constructor removes one of these and throws an error because there are not enough vertices. Checking if the current points in a triangulation step are collinear and discarding those triangles fixes the problem. Class-commons lets you use any supporting class system as backend for HC. Add SpatialHash:draw() for debug purposes.
5 lines
118 B
Plaintext
5 lines
118 B
Plaintext
General Purpose 2D Collision Detection System
|
|
|
|
Documentation and examples here:
|
|
http://vrld.github.com/HardonCollider
|