# Box2D Question

**URL:** https://forum.kirupa.com/t/box2d-question/316825
**Category:** Uncategorized
**Created:** [December 3, 2010, 11:30am UTC](https://forum.kirupa.com/t/box2d-question/316825 "2010-12-03T11:30:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![foryou\_sandeep](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@foryou\_sandeep](https://forum.kirupa.com/u/foryou_sandeep)
#### Post date: [December 3, 2010, 11:30am UTC](https://forum.kirupa.com/t/box2d-question/316825/1 "2010-12-03T11:30:38Z")

</div>

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…
