Hi,
I'm wondering how to make an enemy chasing the player. First, I thought that i will use pathfinding A-Star code like MicroPather for that but I think it is too heavy for the CPU. I think that pathfinding A-Star is good to escape a maze which it is static but i don't think it is good to chasing a player who is moving. So what is the good method ?
Sorry for my english
thanks
[AI] chasing an enemy
-
mkultra333
- Gold Sponsor

- Posts: 1894
- Joined: Sun Mar 08, 2009 5:25 am
- x 116
Re: [AI] chasing an enemy
On a modern computer you shouldn't have problems with A* or pathfinding in general. Recast/Detour is a good library, I've been using it for years and there's a few posts on this site about using it, though they'll be a bit old.
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.
-
dragonblood
- Halfling
- Posts: 68
- Joined: Sat Apr 25, 2015 4:01 pm
- x 6
Re: [AI] chasing an enemy
Yes but when I use MicroPather on a heightmap 6000*6000, calculate the solver became too heavy for the cpu. I will try recast/detour to compare with MicroPather.mkultra333 wrote:On a modern computer you shouldn't have problems with A* or pathfinding in general. Recast/Detour is a good library, I've been using it for years and there's a few posts on this site about using it, though they'll be a bit old.
-
mkultra333
- Gold Sponsor

- Posts: 1894
- Joined: Sun Mar 08, 2009 5:25 am
- x 116
Re: [AI] chasing an enemy
No doubt it depends on how well the pathfinder can simplify the geometry. Recast does a good job of creating a simplified navigation mesh.
"In theory there is no difference between practice and theory. In practice, there is." - Psychology Textbook.