Pathing is a bitch!

I've been having pathing woes, damn bots keep bumping into walls and each other when following the path! This has to do with the grid search and path optimization technique used. The grid layout in respects to the environment was causing the bots to clip corners. This was also the problem with LOS as I was also clipping corners when using the grid. Both problems was solved by using the line algorithm supplied by James McNeill on his blog PlayTechs and shifting the environment so that it originates from the center of the grid blocks.

The main reason I picked up these issues was due to the fact that when I had multiple bots running arround it looked crap. So with these refinements hopefully I can continue towards a prototype...

2 comments:

xMichaelx said...

Stupid bots, did you at least eventually sort the issue out? Sorry if this is a stupid question, my head is killing me :P

Gustave said...

Hehe, yes I'm busy testing it and so far so good :D. Still some tweaking left to do...