   Another collision detection question
  But this one is slightly different from the others posted recently. I am making a game (see sig) that has a 2D pixel-based map. So collision detection needs to be per-pixel. I have basic collision detection based on the jnrdev tutorials but i'm not really sure of some things.One problem i'm having, i am updating all physics objects (inherited from class PhysicsObject) in a loop. But what happens when i need to delete an object? Should i just delete it right there (in the middle of looping) or should i delete it once the loop has finished updating all objects? In the second case i guess i would have another array of objects to be deleted and remove them from the main list after the loop.I will probably have more questions later so i need a good tutorial or free online book for this type of physics/collision detection. I would really like to see some example code too. And i do not intend to try and learn only from source code, i know a lot of people here don't like it when people ask for source code. But all i want is some perspective, some way to tell if i am on the right track or way off.thanks   
  A while ago i posted here asking about physics and collision detection. Someone suggested i use the Box2D engine but it can't do per-pixel collision so i can't really use it. Well i was just browsing through it's source code to see how they updated each object and i quickly realised that there was a lot more going on than i could ever do. So now i am starting to wonder (again) if it would really be worth trying to do it myself. Does anyone know of a library that can do per-pixel, 2D physics and collision detection? Or should i just stick with what i have now?   