I don't understand some parts of the Bounce function in the Pinball example:
From what I've understood (correct me if I'm wrong) it checks for collision in positions around a circle. But I don't understand:
// Finds the shape of the obstacle
for (a=0.0; a<2.0*_PI; a+=_PI/32.0)
if (callTestPosition(pHo, (int)x, (int)y, 0, CM_TEST_PLATFORM))
1) Why aFound starts from -1000?
2) Why, in the for loop, a is incremented by _PI/32.0?
3) Why cos and sin are multiplied by 16?
Thank you again for your help!