pythonopenglcollision-detectionbreakout

Collision Detection in Python OpenGl


Collision Detection in Python OpenGl

I'm working on breakout game by using python opengl and I want to make collision detection between the ball and the bricks (Without using pygame).

I tried a lot but I couldn't and I didn't find any tutorials about it (using Python OpenGl).

How can I add collision detection in it?

My code until now:

deleted the code because the problem is solved and the whole project is changed (the code wasn't good)


Solution

  • I finally solved my problem. I used a different architecture for the whole project and I could link my data structure with the new architecture. The idea was not using any library, just data structure.