- Home /
3D flying enemy pathfinding,3D flying pathfinding?
Hey folks, here's what I'm looking to do: I have a 3D tower that the player can climb up, down and side to side on. I'd like to have a bird that circles the tower and attacks the player whenever the player is in the bird's attack radius.
The reason I ask for pathfinding is because when the bird sees the player, it has to be able to navigate its way to the player while avoiding any parts of the tower that may be sticking out and in the bird's way.
Any ideas on how I can achieve this? Ideally the bird has an idle state of orbiting the tower on the XZ plane and then moves on all 3 axis in order to get to the player. And if the player escapes the attack radius, it flies back to its XZ plane and returns to its idle state.
I played around a bit with A* but I don't see a way to create a grid that extends into the Y space.. Any suggestions would be great.
PS. Sorry for the weird formatting, could not figure out the line break tool .. smh.