Hi guys, I was hoping to get started with Box2D and by just looking through the documentation, I'm pleased to see how easy it is to pick up and extend.
I did have a few questions though, if someone could answer or link to an answer I would be most gratefull.
1 Is it possible, when a hit between two specific objecttypes is detected, to let the engine ignore it during collision response? I'm thinking of an enemy character dying and the object killing it passing through it. I've read on categories and groups, but I do want collision detection, just not the response in certain cases. Can I just add a contact listener and remove the killed object and contact from the simulation, or would that break the engine?
2 Is it easy to set optimize a scolling engine? For example I disable and enable parts of the simulation (like only the bodies that are onscreen, or bodies belonging to characters that are active).
Thanks in advance, can't wait to get home from work and get started 😉
I did have a few questions though, if someone could answer or link to an answer I would be most gratefull.
1 Is it possible, when a hit between two specific objecttypes is detected, to let the engine ignore it during collision response? I'm thinking of an enemy character dying and the object killing it passing through it. I've read on categories and groups, but I do want collision detection, just not the response in certain cases. Can I just add a contact listener and remove the killed object and contact from the simulation, or would that break the engine?
2 Is it easy to set optimize a scolling engine? For example I disable and enable parts of the simulation (like only the bodies that are onscreen, or bodies belonging to characters that are active).
Thanks in advance, can't wait to get home from work and get started 😉