Chipmunk 7. anyway to remove a collision handler?
Posted: Mon Mar 30, 2015 5:16 pm
Currently trying to migrate to Chipmunk 7 because of 64 bit issues with submitting apps.
Running into an issue trying to migrate called to [ChipmunkSpace removeCollisionHandlerForTypeA: and b:]
as far as I can tell there is no way to remove a handler once it's been added, even in the underlying c class.
the ChipmunkSpace class has a _handlers array that keeps getting bigger with each add call.
looks like the cpSpace class has a hash set so you could theoretically set null functions to the handler but the only way you can reset the hash is to destroy the space.
Running into an issue trying to migrate called to [ChipmunkSpace removeCollisionHandlerForTypeA: and b:]
as far as I can tell there is no way to remove a handler once it's been added, even in the underlying c class.
the ChipmunkSpace class has a _handlers array that keeps getting bigger with each add call.
looks like the cpSpace class has a hash set so you could theoretically set null functions to the handler but the only way you can reset the hash is to destroy the space.