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 picture
I need a common formula for all four borders. Does anybody know it?
Aucun commentaire:
Enregistrer un commentaire