vrld / HC

General purpose collision detection library for the use with LÖVE.
http://hc.readthedocs.org/
402 stars 48 forks source link

Problems with HC:remove #3

Closed andreadellacorte closed 12 years ago

andreadellacorte commented 12 years ago

Hi,

I've got some problems with the remove function.

I'm calling it in the on_collide callback to remove shapes, is this the right way to do it?

The error I get is:

hardoncollider/init.lua:187: attempt to to compare number with nil

Trackback

hardoncollider/init.lua:187: in function 'collision_id' hardoncollider/init.lua:240: in function 'update' main.lua:88: in function 'update'

Thanks, Andrea

vrld commented 12 years ago

Interesting bug, yet I have no idea how that happens :/ Can you provide me with some failing code so I can test it myself?

There will a BIG commit (that breaks stuff) as soon as I finish updating the documentation.

andreadellacorte commented 12 years ago

I'm sorry but the problem is gone, after I made some changes (which I talk about in the other issue I opened).

Anyway your library is awesome. Great job.