Original Post
I have been working on a project both in Python 3, and Stencyl ( which I hate ) that involves a variant of pong.
I would like to know the best mathematical method of calculating the angle of deflection off of an angled surface.
For example: the ball is traveling at a 30 D angle ( North is 0 D, South is 180 D ), and just collided with a surface that is set at 70 D ... which angle would it deflect at ?
This is a simplification of the situation, due to the fact I am using x y vectors instead of angles, but the trig should work out.
Thank you for your time.
I would like to know the best mathematical method of calculating the angle of deflection off of an angled surface.
For example: the ball is traveling at a 30 D angle ( North is 0 D, South is 180 D ), and just collided with a surface that is set at 70 D ... which angle would it deflect at ?
This is a simplification of the situation, due to the fact I am using x y vectors instead of angles, but the trig should work out.
Thank you for your time.