• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Really simple physics problem

FrogDog

Diamond Member
I'm building a Pong game in Java and I can't seem to remeber my high school physics stuff. Basically what I need to know is the formula to calculate the angle that an object will be travelling on after it collides with a static (before and after collision) object. I've drawn a diagram to help explain it.
 
angle of incidence equals angle of reflection.

but in pong, that's boring. You need to factor in the speed of the paddle and the momentum imparted to it when it goes through the elastic collision. Ooh ooh, calculate the spin imparted to the ball too for some real fun.

But yeah, it bounces at the same angle...

-patchy
 
Back
Top