Feb
16
Dogs chasing dogs
So, this is something I wrote up to answer an itching question about four dogs in a field. After a figuring out the question, I kinda went nuts and had fun with this.
Click anywhere to reset the simulation.
What’s happening?:
- There are a bunch of dogs.
- Each dog is chasing one other dog (and thus, each dog is being chased by a dog).
- Dogs move at a constant speed.
- Dogs have a small tendency to move towards the center of the screen.
- Dogs move toward the dog they’re chasing as quickly as possible unless the dog that is chasing them is too close.
- Dogs get very frightened of and run away from the dog that’s chasing them when they get too close.