Syclamoth / GamesAI6

A repository for the assets folder of our GamesAI project
2 stars 0 forks source link

Seek/Pathfind steering behaviours #13

Closed Syclamoth closed 11 years ago

Syclamoth commented 11 years ago

I want to incorporate the pathfinding and seek steering behaviours, since each of these complements the weaknesses of the other.

So, instead of having to add two different steering behaviours and manually switch between them based on situation (or, worse still, have them constantly fight each other), they will naturally work together to reach the desired goal.

Will this break anything? We'll obviously have to modify the steering behaviour setup code, but I think the end result will be beneficial.

Andrew-Dunn commented 11 years ago

I see no issue with this.

Syclamoth commented 11 years ago

It's in. It works pretty well, except when the player is 'inside' an invalid tile (on the very edge of the sidewalk, for example)- could you modify the pathfinding to reach the nearest tile, instead of simply failing?