Sign in to follow this  
sheep19

Are steering behaviours enough?

Recommended Posts

sheep19    494

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.

Share this post


Link to post
Share on other sites
DekuTree64    1168

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)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this