Original Post
I'm currently writing a ball game, but have no idea how to cause the ball to reflect off lines. The line consists of two points; the circle of a center point, a radius, and a velocity vector (I definitely don't want to use angles). I was wondering if someone could explain how to go about this, as the only code I have doesn't work. All I really need to know is how to detect the collision and calculate the new vector for the ball - I already have a Vector class with methods such as calculating the normal, addition, subtraction, etc. On a side note, could someone explain what the dot product of two vectors is supposed to represent? Thanks - I've tried googling and looking through the articles here on GD.net, but I'm not exactly sure what I'm looking for in the first place. --Crehl.