I'm building a game in c++ using Qt. I got the collision detection right using GraphicsItem methods the thing is that I don't know how to deal with every different collision type as there is different objects with different behaviour.
A:
I guess that you are using one of the collidingItems
or collidesWithItem
methods. From these you get a list of QGraphicsItem
s. Then it is just a matter of casting to determine what hit what and reacting.
e8johan
2009-12-10 08:13:36