Can i use A* pathfinding on planes?

Hey guys, what's up! I have a simple question: can i use A* pathfinding from Aron Granberg or from Angry Ant in a plane? Or do i need a specific AI script for flying objects? Thanks! I need to make a plane chase the the player, which is piloting and airplane like this: Airplane This is a screenshot of my game edited in Photoshop :D

Yeah! I know i'll need to change something, but, basically, i want to know if these systems can be used with a place with no base, no floor, only air. I'll download the aron A* system, and try to alter it. Thanks!

–

1 Answer

1

A* is a generic path finding algorithm and can therefore be used to solve any pathing problem (whether it's on a surface or not). The only question is whether or not these systems are generic enough to support generating a multilayered grid rather than points on a plane. The challenge with this will be finding a good heuristic for calculating distance to the end goal to make your A* calculation efficient.

Oh thank's! I'll try it!

–