tags:

views:

109

answers:

1

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 QGraphicsItems. Then it is just a matter of casting to determine what hit what and reacting.

e8johan