News for hackers. Stuff that matters.
Re:Enemy AI: chasing a player without Navigation2D or A* pat... by eru on Tuesday April 14, 2020 @05:03AM (#22863954)
Yes, lots of things to learn from dogs.

Insects and other animals are also good for inspiration. Even microbes!

There are some microbes that essentially follow this small program to find sugars:

- swim forward - wiggle around randomly - repeat

When the concentration of sugars is increasing, spend more time swimming forward. Otherwise, spend less time swimming between wiggles.

In a game, you would have the player leave a scent trail, and some of the other critters could behave like above.

There are no comments on this comment yet.