General purpose collision detection library for the use with LÖVE.
Go to file
Matthias Richter 0dc1e6c719 Issue #25: Division by 0 in CircleShape:support().
support(A,B, 1,0) returns 0,0 when A and B are touching in a vertex of
both A and B AND this vertex is on the right of A's center (in direction
(1,0)), e.g. this situation:

    .---.
 .-.| B |
: A x---'
 '-'

Then: support(A,B, 1,0) = A:support(1,0) - B:support(-1,0) = x - x = 0

Since CircleShape:support(dx,dy) normalizes dx,dy this will result in a
division by 0 error in the subsequent execution of the GJK algorithm.

An early out with result 'not colliding' (in accordance to the other
edge cases) prevents this error.
2013-08-13 15:13:25 +02:00
class.lua Adhere to new class commons specs. 2013-07-21 12:51:35 +02:00
gjk.lua Issue #25: Division by 0 in CircleShape:support(). 2013-08-13 15:13:25 +02:00
init.lua Adhere to new class commons specs. 2013-07-21 12:51:35 +02:00
polygon.lua Adhere to new class commons specs. 2013-07-21 12:51:35 +02:00
README Fix triangulation. Use class-commons. Add hash:draw() 2012-01-22 00:09:54 +01:00
shapes.lua Adhere to new class commons specs. 2013-07-21 12:51:35 +02:00
spatialhash.lua Adhere to new class commons specs. 2013-07-21 12:51:35 +02:00
vector-light.lua Switch to light vector module 2012-04-12 16:07:50 +02:00

General Purpose 2D Collision Detection System

Documentation and examples here:
http://vrld.github.com/HardonCollider