Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balls demo may raise constraint_error #2

Open
rveenker opened this issue Jan 21, 2017 · 1 comment
Open

balls demo may raise constraint_error #2

rveenker opened this issue Jan 21, 2017 · 1 comment

Comments

@rveenker
Copy link

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.

@lambourg
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants