I'm trying to figure out how to detect a collision between two objects. To be more specific, a collision between the players sword and the beasties. I've already looked around the internet and although I've found a lot of information, I don't understand most of it. I've come here hoping someone can enlighten me and correct me if what I'm trying to do is incorrect.
Even though I don't have much knowledge with bullet physics regarding collision detection, but I have a pretty clear idea of what I'm trying to achieve. My idea is simple: program the monster class so that each of its instances keeps track of what it is colliding with. If it collides with the player's sword then the appropriate actions are taken. My main concern is whether or not I can apply collision detection via individual rigid bodies.
In terms of code, I would imagine the collision detection as some sort of independent callback function which would take the two colliding objects as parameters and if there was a collision between said objects, it would return true.
I hope I'm being clear, but I'm not sure how else to explain. Basically, object01 collides with object02 and Bullet goes, "Hey, guess what...".