Are steering behaviours enough?

Started by
1 comment, last by DekuTree64 10 years, 7 months ago

I am developing a game where a player is a bird. There are other birds in the world too, some allies and some foes.

I am still in the early stages of the game - I am currently developing some flocking steering behaviours - but will they be enough?

The game will not have closed environments like FPS games, but it will have some places where things are more confined - e.g inside a mountain.

Also, there will be missions where the NPCs will go from place to place etc. I don't want to characters stuck on mountains/rocks/trees.

So how do I decide if I am going to need path finding?

Thank you.

Advertisement
Steering with simple obstacle avoidance forces should accomplish anything you need based on this description. You might also find this article useful.

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

Look at your maps. Draw a line from point A to point B. If avoiding obstacles will ever involve going away from the destination for a significant amount of time, you'll probably need pathfinding. But most likely, the birds will be able to simply veer left or right to get around things, or just go over them, so obstacle avoidance will probably cover it.

But steering plays nicely with pathfinding, so you could do both. Balance the priority values so birds can be some distance from the path before it becomes a significant draw, so they can maintain their flock spacing but won't drift far enough from the path to get stuck. Following the direction of the path should be pretty high, to keep the flock headed the right direction. But then trees and things become overwhelming when distance becomes small, so birds will deviate from the path and flock spacing to avoid them (and other birds will react by trying to rebalance the flock spacing, which should be pretty cool to watch)

This topic is closed to new replies.

Advertisement