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

Snail Collision Detection #120

Open
babyblueboxers opened this issue Dec 16, 2022 · 1 comment
Open

Snail Collision Detection #120

babyblueboxers opened this issue Dec 16, 2022 · 1 comment

Comments

@babyblueboxers
Copy link
Contributor

Snails currently use OBST to determine if they are about to run into a wall. Unfortunately, being ground critters this triggers on all but the slightest slopes, meaning they get stuck in any appreciable valley, constantly going back and forth. Need a more robust system, or to simply turn around when they collide with a wall:

doif wall eq left
eliif wall eq rght
endi

Even so, snails still seem to cluster up, especially after having babies. I suspect the mother is following the baby, and the baby is following the mother recursively. Needs investigation.

@babyblueboxers
Copy link
Contributor Author

Snails also keep doing this somehow...

image

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

1 participant