@nicourense98 wrote:
So I’m using example-Simple within the ofxBox2d add-on now I am trying to delete the circles/boxes that leave the screen so that the program doesn’t slow down after you spawn a bunch of them. I went into the ofxBox2d.cpp file to see if there was something that deleted the objects that left the screen already and turns out there is code that does just that in the update(). It was initially commented out so I uncommented it but now it is giving me syntax errors. I have tried and looked up many different things but none have worked so I am now back to the original ofxBox2d.cpp file except I still left the destroy code in the update() uncommented (I’m mentioning this so you know exactly what my code is without me having to post it, since the ofxBox2d.cpp file can be found online). Any suggestions?
Posts: 7
Participants: 2