Matthias Richter
1fd4dff37e
Merge remote-tracking branch 'technocat/master'
2012-03-05 10:32:51 +01:00
Matthias Richter
a7c65630ef
Iterators for active and neighboring shapes.
2012-03-05 10:26:14 +01:00
Danny "TechnoCat" Fritz
b58631465c
Added HC:testPoint(x, y) -- Test point for collisions with active objects.
2012-03-03 20:06:39 -06:00
Matthias Richter
87f964cb43
Fix shape:intersectsRay().
2012-02-20 13:13:49 +01:00
Matthias Richter
ac27eee778
Fix HC:remove(shape, ...) to accept varargs.
2012-02-20 10:54:07 +01:00
Matthias Richter
940266e0dc
Add shape:bbox(). Simplify hash aware functions
2012-02-11 19:38:09 +01:00
Matthias Richter
d8af7e3d2d
Fix typo in HC:clear(): self._hash instead of self.hash.
2012-01-29 14:19:59 +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
ab08c5744b
Silly me, Lua doesn't work this way
2011-11-13 16:00:08 +01:00
Matthias Richter
956df262d5
Avoid using module(). Make main module a class.
2011-11-13 14:15:46 +01:00
Matthias Richter
5aa6b335be
Add HC.clear()
2011-08-12 13:00:54 +02:00
Matthias Richter
eb2ef94212
Update class lib
2011-08-12 13:00:44 +02:00
Matthias Richter
06dc6bed68
Merge start and persits callback. Add HC.setPassive
2011-06-03 18:06:42 +02:00
Matthias Richter
8b29ebc616
Add shape:setRotation() and shape:rotation()
2011-02-27 17:00:49 +01:00
Matthias Richter
06ae1d0910
Fix polygon rotation.
2011-02-27 14:48:46 +01:00
Matthias Richter
68af2448fd
Fix typo
2011-02-26 21:39:24 +01:00
Matthias Richter
4e6d4be0e9
rawset!
2011-02-26 18:57:21 +01:00
Matthias Richter
736c9ba933
Fix PointShape:intersectsRay() - return true only of point on ray
2011-02-26 17:43:22 +01:00
Matthias Richter
787c980fdd
Add point shape
2011-02-26 17:27:04 +01:00
Matthias Richter
7a97797108
Invert reported MTV when delaying collision detection to other shape
2011-02-23 18:04:45 +01:00
Matthias Richter
8ae0f831da
Fix circle/circle collision, Fix MTV computation
2011-02-23 17:33:35 +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
36fb13a69a
SpatialHash to return set instead of array
2011-02-10 14:36:10 +01:00
Matthias Richter
2b83c9f93f
More profiling based optimisation
2011-02-07 19:03:19 +01:00
Matthias Richter
7803b0c11b
Fix bug: param `times' ignored in setAutoUpdate()
2011-02-07 19:02:41 +01:00
Matthias Richter
a04a2ea773
Fix bug: moveTo fails
2011-02-07 17:51:51 +01:00
Matthias Richter
aec4a36cb0
Remove optional vector argument
2011-02-07 17:42:48 +01:00
Matthias Richter
5885d10294
Ray intersection returns ray parameter of intersection point
2011-02-07 17:38:44 +01:00
Matthias Richter
476907a516
Add number parameter to setAutoUpdate()
2011-02-07 17:38:22 +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
75ea879e90
Check for shape validity in main module and hide submodules
2011-02-06 00:25:20 +01:00
Matthias Richter
1d8fee8b7a
Remove double definition of Shape:moveTo()
2011-02-02 22:17:39 +01:00
Matthias Richter
ec10437644
Performance tweaks
2011-02-02 21:04:00 +01:00
Matthias Richter
fae80f07a0
Merge branch 'master' of github.com:vrld/HardonCollider
2011-02-01 23:42:04 +01:00
Matthias Richter
98dd876c5e
Add Shape:moveTo()
2011-02-01 23:41:28 +01:00
Matthias Richter
ae58b7e822
Add auto update hook
2011-02-01 23:39:59 +01:00
Matthias Richter
896f58110e
Add moveTo
2011-01-24 20:37:17 +01:00
Matthias Richter
4a24422e54
Fix reference errors
2011-01-18 23:33:11 +01:00
Matthias Richter
b8c4462454
Rename file
2011-01-18 18:59:25 +01:00
Matthias Richter
f28685bc16
Make proper lua modules
2011-01-18 18:55:51 +01:00
Matthias Richter
e43125d4b8
Add groups and permeable shapes
2011-01-18 15:04:27 +01:00
Matthias Richter
d839b9309c
Allow number arguments to move/rotate functions
2011-01-16 19:27:37 +01:00
Matthias Richter
82e31e7c46
Copy polygon to avoid side effects
2011-01-16 17:18:47 +01:00
Matthias Richter
6971f93275
Hide convex/concave shape, rename function centroid to center
2011-01-16 17:11:55 +01:00
Matthias Richter
d79755d11e
Make main module agnostig of shape._type
2011-01-16 17:10:35 +01:00
Matthias Richter
c6d1054354
Work on collision code
2011-01-14 23:25:43 +01:00
Matthias Richter
4ceac7040a
Rename adding functions
2011-01-14 23:25:24 +01:00
Matthias Richter
940fc40f8e
Fix package path problem
2011-01-13 16:28:05 +01:00