I'm drawing some lines in cocos2d (using handy ccDrawLine), nothing fancy, but i want to check if my animated line hits something. I could do some math calculations for some objects, but for some dynamic parts in the scene it would be much easier if i could do:
if pixel not black at (x,y)
// line will hit something
do handleCollisionDetectedAt(x,y)
What would you suggest? At least what would you suggest if it would be simple OpenGL ES.