<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zach Archer Blog &#187; flocking</title>
	<atom:link href="http://blog.zacharcher.com/tag/flocking/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zacharcher.com</link>
	<description>This blog is GO!</description>
	<lastBuildDate>Fri, 09 Jul 2010 23:02:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flocking</title>
		<link>http://blog.zacharcher.com/2008/06/01/flocking/</link>
		<comments>http://blog.zacharcher.com/2008/06/01/flocking/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 02:40:29 +0000</pubDate>
		<dc:creator>Zach</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[birds]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flocking]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blog.zacharcher.com/?p=18</guid>
		<description><![CDATA[AI for Game Developers has a chapter on flocking, and I thought I'd try it: Click to play! It's not polished, but it lets you explore different flocking behaviors. Here's what the controls do: count The number of "birds" in the simulation. alignmentRadius Birds rotate to match the direction of their neighbors. This parameter changes [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/AI-Game-Developers-David-Bourg/dp/0596005555/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1212373628&amp;sr=8-1">AI for Game Developers</a> has a chapter on <a href="http://en.wikipedia.org/wiki/Flocking_%28behavior%29">flocking</a>, and I thought I'd try it:</p>
<p><a href="http://zacharcher.com/lab/20080601_flocking/FlockingTest.swf"><img src="http://zacharcher.com/lab/20080601_flocking/flocking.png" alt="" /></a></p>
<p><a href="http://zacharcher.com/lab/20080601_flocking/FlockingTest.swf">Click to play!</a> It's not polished, but it lets you explore different flocking behaviors. Here's what the controls do:</p>
<p><span id="more-18"></span></p>
<ul>
<li><strong>count</strong> The number of "birds" in the simulation.</li>
<li><strong>alignmentRadius</strong> Birds rotate to match the direction of their neighbors. This parameter changes how far away they can "see". Larger values tend to align the entire flock; small values let the flock break apart.</li>
<li><strong>separationRadius</strong> Birds try to avoid colliding with nearby walls and other birds. They will turn and simultaneously hit the brakes. This number controls their stopping distance.</li>
<li><strong>peripheralVision</strong> Birds have a blind spot behind them. When this slider is maximized, the birds will have no blind spot, and will see 360 degrees.</li>
<li><strong>turnSpeed</strong> The speed at which birds turn.</li>
<li><strong>brakePedal</strong> Birds will slow down to avoid colliding. When this slider is minimized, the birds will never use their brakes.</li>
<li><strong>travelSpeed</strong> The top speed of the birds.</li>
<li><strong>Scatter</strong> and <strong>Randomize</strong>: Try them and see...</li>
</ul>
<p>If you want access to the code, the SubVersion repository is open: <a href="http://dev.zacharcher.com/svn/flocking_test/">http://dev.zacharcher.com/svn/flocking_test/</a></p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://blog.zacharcher.com/2008/06/01/flocking/&amp;title=Flocking' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us] ' /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://blog.zacharcher.com/2008/06/01/flocking/&amp;title=Flocking' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg] ' /></a> <a href='http://reddit.com/submit?url=http://blog.zacharcher.com/2008/06/01/flocking/&amp;title=Flocking' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit] ' /></a> <a href='http://twitter.com/home/?status=Flocking+http://blog.zacharcher.com/2008/06/01/flocking/' title='Save to Twitter' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/twitter.png' style='width:16px; height:16px;' alt='[Twitter] ' /></a> <a href='http://www.feedburner.com/fb/a/emailFlare?itemTitle=Flocking&amp;uri=http://blog.zacharcher.com/2008/06/01/flocking/&amp;loc=en_US' title='Email this to a friend' onclick='target="_blank";' rel='nofollow'><img src='http://blog.zacharcher.com/wp-content/plugins/bookmarkify/email.png' style='width:16px; height:16px;' alt='[Email] ' /></a>  <a title='See more bookmark and sharing options...' href='http://blog.zacharcher.com/2008/06/01/flocking/#bookmarkify' rel='nofollow'><small>More&nbsp;&raquo;</small></a></div></div>]]></content:encoded>
			<wfw:commentRss>http://blog.zacharcher.com/2008/06/01/flocking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
