I'm pretty new to the box2D iphone thing, so bear with me please.
Basically I'm creating an Orange Machine, whose sole purpose is managing the creating and (ultimate) destruction of all oranges. This class has a NSMutableArray full of Orange(CSSprite) objects. It's been easy to add oranges to the world, I'm just wondering how I would go about removing them from the world.
I've googled quite a bit and haven't been able to locate anything useful (maybe I need to hone my google-fu.)
So basically I need guidance. Not necessarily code; but general process type information. (and method names always help 😀 )
So my questions are:
Question: how would I go about getting a body belonging to a world from a certain location in the world removed from said world?
Basically I'm creating an Orange Machine, whose sole purpose is managing the creating and (ultimate) destruction of all oranges. This class has a NSMutableArray full of Orange(CSSprite) objects. It's been easy to add oranges to the world, I'm just wondering how I would go about removing them from the world.
I've googled quite a bit and haven't been able to locate anything useful (maybe I need to hone my google-fu.)
So basically I need guidance. Not necessarily code; but general process type information. (and method names always help 😀 )
So my questions are:
Question: how would I go about getting a body belonging to a world from a certain location in the world removed from said world?