dimanche 18 janvier 2015

How to calculate an angle at reflection from the wall

I need to make animation of moving ball in rectangle area. I have an angle of ball direction relative to top horisontal border. I can't find formula to calc angles of reflection from all walls. Here is pictureenter image description here


I need a common formula for all four borders. Does anybody know it?






Aucun commentaire:

Enregistrer un commentaire