I know ,when objects touched each other, will dispatch contract event,but I found box2d only dispatch event once, when dynamic object walk into static scope,no event dispatched.
@ar2rsawseen ,thanks,you rock. In my game,maybe have less than 100 sprite, I know this is not a lot,I use queryAABB method,but I wrote not good,so I change to use TNT collision ,it done. I will try to use box2d magnets to rewrite it tomorrow.
Comments
http://appcodingeasy.com/Gideros-Mobile/Gideros--Box2d-magnets
If there are many object, you would not want to constantly calculating distance, so it would be better to use queryAABB method
In my game,maybe have less than 100 sprite, I know this is not a lot,I use queryAABB method,but I wrote not good,so I change to use TNT collision ,it done.
I will try to use box2d magnets to rewrite it tomorrow.