I was working on making a cube runner game on pyopengl utilising pygame also. However, I have no idea how to code for collision detection. Right now i have a camera and some randomly spawning cubes. The cubes move passed the camera but if a cube is approaching me, it will go straight through. Does anyone have any suggestion on how to do this?
thanks