Hello again!
I’m using the box2D addon and am trying to create circular shapes that fall from the top of the screen to the botom, and after that I want to delete them when they get out of bounds of the screen, in order to limit the ammount of shapes being processed.
I read a few post about destroyBody failing sometimes, but I’m not sure. Also, there a section of Box2D addon that has been commented that I think might be why it doesn’t work for me. All I could figure out was this:
for (int i=0; i < circles.size(); i++) {
ofPoint tmppos = circles[i].getPosition();
if (tmppos.y > 600){
physics.world->DestroyBody(circles[i].body);
}
}
any help would be appreciated.