I have a big problem with my game now.
I have created 4 b2Body objects in box2D (using a common function) with the same name. I want to destroy these objects later. But i dnt know how to access each one of the. Now i could access and destroy only the last created object.
If the same situation of multiple copies comes when using MovieClip, i usually copies its reference to an array, and later access it by “Holder*”. Is there a similar method in Box2D also?..
Or any other idea to destroy all created b2Body objects in b2World…
Please help… I got stuck in here…