Ada_Bare_Metal_Demos icon indicating copy to clipboard operation
Ada_Bare_Metal_Demos copied to clipboard

balls demo may raise constraint_error

Open rveenker opened this issue 8 years ago • 1 comments

Hello, I found that the balls demo will at some point raise constraint_error. Especially when there are a lot of balls :-) The problem arises when the center coordinate of a ball gets a negative component from Handle_Collision. When the center coordinate is converted to a point which has values X and Y of type Natural, the constraint_error occurs. This happens when a call is made to Fill_Circle.

rveenker avatar Jan 21 '17 20:01 rveenker

I knew that my collision algorithm is not right ;) Honestly, this balls demo is not the one I run the most, but I'll try to make some effort improving it. I'll have a look.

lambourg avatar Jan 22 '17 01:01 lambourg