Hi, I tried to learn how to detect collisions between the ball and the line. Somehow we made it work, but now I do not know how to bounce the ball from the line.

Collision detection - the ball ( "a"), line (from "b" to "c"). You can move every point.
Download the example

It is not a simple hitTest, but "twisted vectors". I learned that from these examples: