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

Feature request: Variable speeds #1

Open
steventrouble opened this issue Jul 30, 2023 · 3 comments
Open

Feature request: Variable speeds #1

steventrouble opened this issue Jul 30, 2023 · 3 comments

Comments

@steventrouble
Copy link

steventrouble commented Jul 30, 2023

I've noticed that the ants seem to be moving at a constant speed and seem to turn at a constant speed too. Is that right? I think that might be what's preventing the trail from simplifying more quickly.

I'm not sure how ants do it in real life, so feel free to close this if it's not realistic

@steventrouble steventrouble changed the title Feature request: Feature request: Jul 30, 2023
@steventrouble steventrouble changed the title Feature request: Feature request: Variable speeds Jul 30, 2023
@bones-ai
Copy link
Owner

bones-ai commented Aug 1, 2023

Hey, thanks for raising the issue :)

Yes, the ants are technically supposed to join a path once they find them, but due to the way forces are implemented, they overshoot, I couldn't fix this due to time constraints

Yes the speed of the ants is constant for now. Can u explain what you mean by Variable speeds, you mean when making a turn reduce the speed of the ant so that it doesn't overshoot?

@steventrouble
Copy link
Author

Yup, that's right!

@bones-ai
Copy link
Owner

bones-ai commented Aug 6, 2023

Well the next question would be how to detect when to slow down the ants?

Also I found a really good tutorial sometime ago (https://www.youtube.com/watch?v=rlZYT-uvmGQ) that describes the same behaviour. I'll try and spend some time to integrate either variable speed or follow this tutorial

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