I am working on a simple space shooter where I (the player) control a ship and shoot at other ships (the enemy).
I have decided to use Box2D just in case if I decide to add more features to the game.
However, I am a little confused how to do the interactions.
All of the objects in the world are bodies (obviously), even the lasers/bullets.
However, when two bodies collide, one of the bodies gives it’s momentum to the other body. How can I stop that and at the same item to use a ContactListener?
I am using DynamicBodies to be sure that I can use the ContactListener.
In fact, what is the best way to make that kind of interaction - between a bullet and a body.