Closed andreadellacorte closed 12 years ago
This issue is somewhat puzzling, since the collision callbacks are only called after searching for all colliding shapes. Are you using the stop-colliding callback?
No, how does that works?
Thanks
I meant the second callback in setCallbacks(). Can you provide me with a complete example if the error is still present with the latest version?
Hi!
I noticed that using hc.remove to remove from the collision system a shape that was added in a group, is causing a memory leak.
Unfortunately when removeFromGroup is getting called, I get the following error:
hardoncollider/init.lua:292: Shape was not created by main module
I did the following to solve this problem: I added a mark for removal boolean into every object, which is updated into the collide callback and they are not anymore removed from HC into this callback, but into the update function.
Thanks, Andrea