I am corrently working on a flappy bird like game and I want to now how it is possible to detect a collusion. Currently the bird is just a rectangle. So I want to know how I in general can check if the rectangle is hitting an obstacle.
Greetings and thank you for your response
Jeyeffkay
Here’s a page from stackoverflow, examples written in Java but the algorithm will work the same:
Another page with a more general discussion of collisions between circles, rectangles, and polygons, presented in order of complexity (circles are easiest, polygons are most complex):