Advertisement

my flocking demo

Started by March 17, 2015 10:32 PM
7 comments, last by manaruto 9 years, 8 months ago
i have implemented my flocking algorithm to simple project grin.gif

let me know what you think grin.gif


Looks good. What happens if you tell the flock to walk into a house that has a front door that is only big enough to fit one person through? Do the people behind the first guy all pile up at the doorway and wait their turn, or are they smart enough to spread out to see if there is another door on the side/back of the house?

Advertisement

A pathfinding solution would know there is another door. A purely steering based solution (which this is) has no knowledge of environment that it can't immediately throw a raycast off of.

Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play

"Reducing the world to mathematical equations!"

Nice

Looks good. What happens if you tell the flock to walk into a house that has a front door that is only big enough to fit one person through? Do the people behind the first guy all pile up at the doorway and wait their turn, or are they smart enough to spread out to see if there is another door on the side/back of the house?

It's not contain any pathfinding algorithms,.. it's just steering based solution as IADaveMark said.

The normal pathfinding algorithms , all units will pile up at doorway and wait their turn, but for sure you can add more functions like finding all paths available to go through the building then make units go inside from different doors

i got your idea ,.. it's pretty nice if it used in SWAT force game :D ,.. may be i will give it a try in future :D


A pathfinding solution would know there is another door. A purely steering based solution (which this is) has no knowledge of environment that it can't immediately throw a raycast off of.

Yes it is.

It's just steering force between unit and each others or between units and small obstacles in the map.

I think in combination with A* it can handle concave objects or finding available paths into the house like you said.

Advertisement

Nice

Thanks :)

Looks amazing! What are your next steps?

Thanks, will be combining flocking algorithm with A* to make it handle concave objects.

next to that

different formation , grouping to units,..

fog of war,..

i want to try more stuff about RTS games :D :D

This topic is closed to new replies.

Advertisement