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

Collision detection: in some cases, organisms overlap. #1

Open
AymericG opened this issue Sep 5, 2012 · 0 comments
Open

Collision detection: in some cases, organisms overlap. #1

AymericG opened this issue Sep 5, 2012 · 0 comments
Labels

Comments

@AymericG
Copy link
Owner

AymericG commented Sep 5, 2012

When I ported the code from .NET, I couldn't get the collision detection algorithm to work at all. So I decided to mix the main collision detection concept (break the movement into small incremental movement until we hit something) and reused the _cellOrganisms index (tells you which cells are busy).

The code works 99% but sometimes two organisms will be allowed to overlap when they shouldn't.

@AymericG AymericG closed this as completed Sep 5, 2012
@AymericG AymericG reopened this Sep 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant