lamao / stones-of-history

Automatically exported from code.google.com/p/stones-of-history
0 stars 0 forks source link

Sometimes ball is not reflected when it hit the bricks corner. #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
*BUILD NUMBER*
r71

*OS*

*STEPS TO REPRODUCE*
1. Run the game
2. Aim the ball so that it will hit brick at the corner and angle between
side of brick and ball direction will be less that 90 degrees (something
like this 
   ___
 /|
/ |

*ACTUAL RESULT*
In some cases ball is not reflected but it continue moving along the top
side of brick.

*EXPECTED RESULT*
Ball must be reflected.

*ADDITIONAL DESCRIPTION*
This bug is due to SHBall#onHit routines where direction is calculated
based on average vector of normals of all collided brick's triangles.

Original issue reported on code.google.com by lamao.ua@gmail.com on 3 Jun 2010 at 6:37

GoogleCodeExporter commented 8 years ago

Original comment by lamao.ua@gmail.com on 19 Dec 2012 at 7:15