0
votes

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)

1
How is this not a dupe of the last one?genpfault
I edited the last one (to add the code) after it's been closed, so I decide to delete it and ask a new question.Tarek Alabd
See Issue finding side of collision for Circle-Rectangle collision. The algorithm uses pygame.math.Vector2, but that can be changed with ease.Rabbid76
cannot be deleted.Tarek Alabd
@Rabbid76 I wanna delete it or delete the codeTarek Alabd

1 Answers

0
votes

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.