I'm working on collision detection for a pong clone. I've calculated the angle of incidence but I can't find any information on how to specular reflect the angle I found.
The code for calculating the angle of incidence is below
if (ballPosition.Y >= height - 6)
{
Vector2 bottomNormal = new Vector2(400, 460) - new Vector2(400, 480);
Vector2 ballNormal = ballPosition - new Vector2(400, 480);
ballNormal.Normalize();
bottomNormal.Normalize();
float angle = Vector2.Dot(bottomNormal, ballNormal);
}
