Commit Graph

15 Commits

Author SHA1 Message Date
Matthias Richter
87f964cb43 Fix shape:intersectsRay(). 2012-02-20 13:13:49 +01:00
Matthias Richter
c681391033 Fix triangulation. Use class-commons. Add hash:draw()
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.
2012-01-22 00:09:54 +01:00
Matthias Richter
956df262d5 Avoid using module(). Make main module a class. 2011-11-13 14:15:46 +01:00
Matthias Richter
06ae1d0910 Fix polygon rotation. 2011-02-27 14:48:46 +01:00
Matthias Richter
97b470b059 Fix bug: Polygon:contains() fails for rectangles when point left of shape 2011-02-21 17:16:13 +01:00
Matthias Richter
2b83c9f93f More profiling based optimisation 2011-02-07 19:03:19 +01:00
Matthias Richter
5885d10294 Ray intersection returns ray parameter of intersection point 2011-02-07 17:38:44 +01:00
Matthias Richter
da6e772be7 add ray intersection 2011-02-07 00:08:02 +01:00
Matthias Richter
56737e7aa0 Add point location and broad phase 2011-02-06 17:40:06 +01:00
Matthias Richter
4554742579 Hide submodules. 2011-02-06 15:03:21 +01:00
Matthias Richter
ec10437644 Performance tweaks 2011-02-02 21:04:00 +01:00
Matthias Richter
f28685bc16 Make proper lua modules 2011-01-18 18:55:51 +01:00
Matthias Richter
d839b9309c Allow number arguments to move/rotate functions 2011-01-16 19:27:37 +01:00
Matthias Richter
c6d1054354 Work on collision code 2011-01-14 23:25:43 +01:00
Matthias Richter
3ad0242195 Initial commit 2011-01-13 14:38:36 +01:00