Advice to update my b2ContactListener

Hi dudes!

Need some advice 😉

My program uses Add and Remover from b2ContactListener (but not Persist/Result).
Basically I count how many times a contact is added, and I also decrement them in Remove, in another class, and after time step, I analyse this class and update my game logic.
Doing that my game logic works perfectly.

My question is: Should I do something similar with new b2ContactListener?
I see the new class has BeginContact/EndContact/PreSolve/PostSolve.
What do you recommend me to update my program?
What is the correct way to manage contacts for game logic?


Thanks a lot for your help.

Original thread: https://box2d.org/forum/viewtopic.php?t=4113