<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Boids</title>
	<atom:link href="http://www.coderholic.com/boids/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coderholic.com/boids/</link>
	<description>Addicted to Development</description>
	<lastBuildDate>Thu, 09 Sep 2010 00:50:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ben</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-5924</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 03 Nov 2009 20:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-5924</guid>
		<description>Hi Rocco,

I don&#039;t know much about the Blender game engine, but I imagine it has something similar to the pygame main game loop. Sorry I couldn&#039;t be of any more help!

Ben</description>
		<content:encoded><![CDATA[<p>Hi Rocco,</p>
<p>I don&#8217;t know much about the Blender game engine, but I imagine it has something similar to the pygame main game loop. Sorry I couldn&#8217;t be of any more help!</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocco</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-5878</link>
		<dc:creator>Rocco</dc:creator>
		<pubDate>Thu, 29 Oct 2009 15:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-5878</guid>
		<description>Yaeh, that&#039;s what i thought. One last question: there are several references to pygame which of course i will get rid of but that ruins the code. i am taking  acloser look to see what fixes i can make, in the meantime any help you can offer. I am using thescript in Blender game engine, which is easy to use. of i added what i needed to make it work in blender but am a little hazy on how to fill the pygame while loop for example</description>
		<content:encoded><![CDATA[<p>Yaeh, that&#8217;s what i thought. One last question: there are several references to pygame which of course i will get rid of but that ruins the code. i am taking  acloser look to see what fixes i can make, in the meantime any help you can offer. I am using thescript in Blender game engine, which is easy to use. of i added what i needed to make it work in blender but am a little hazy on how to fill the pygame while loop for example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-5855</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 28 Oct 2009 15:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-5855</guid>
		<description>Hi Rocco,

Yes this is a 2D version of boids. A 3D version would follow exactly the same principles, you just need to add extra calculations for the z axis. So where the x and y values are calculated just as another calculation for z.

Hope that helps!

Ben</description>
		<content:encoded><![CDATA[<p>Hi Rocco,</p>
<p>Yes this is a 2D version of boids. A 3D version would follow exactly the same principles, you just need to add extra calculations for the z axis. So where the x and y values are calculated just as another calculation for z.</p>
<p>Hope that helps!</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocco</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-5854</link>
		<dc:creator>Rocco</dc:creator>
		<pubDate>Wed, 28 Oct 2009 15:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-5854</guid>
		<description>Looks good but i think it is only 2d correct? Is there a 3d version? i use blender so i guess i would have to change it a bit, the boids at blender work great but are not supported by the game engine ( i am trying to develop a sim)  so i am trying to write my own boids. I was trying to make 3d boids that would also scatter when a predator comes around. I just stared learning python but don&#039;t know much, any help you can give or if you have a 3d version would be great</description>
		<content:encoded><![CDATA[<p>Looks good but i think it is only 2d correct? Is there a 3d version? i use blender so i guess i would have to change it a bit, the boids at blender work great but are not supported by the game engine ( i am trying to develop a sim)  so i am trying to write my own boids. I was trying to make 3d boids that would also scatter when a predator comes around. I just stared learning python but don&#8217;t know much, any help you can give or if you have a 3d version would be great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-2269</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 05 Mar 2009 12:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-2269</guid>
		<description>@lgwe: Yes. Sorry, the download link to the full source code (including this missing code) was broken. I&#039;ve just fixed it.</description>
		<content:encoded><![CDATA[<p>@lgwe: Yes. Sorry, the download link to the full source code (including this missing code) was broken. I&#8217;ve just fixed it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lgwe</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-2268</link>
		<dc:creator>lgwe</dc:creator>
		<pubDate>Thu, 05 Mar 2009 12:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-2268</guid>
		<description>My guess on the missing functions:

at the beginning add:

import pygame
import random
import math

in the Boid class add:

def distance(self, bb):
  return math.sqrt((self.x-bb.x)**2 + (self.y -bb.y)**2)

def move(self):
  self.x += self.velocityX
  self.y += self.velocityY</description>
		<content:encoded><![CDATA[<p>My guess on the missing functions:</p>
<p>at the beginning add:</p>
<p>import pygame<br />
import random<br />
import math</p>
<p>in the Boid class add:</p>
<p>def distance(self, bb):<br />
  return math.sqrt((self.x-bb.x)**2 + (self.y -bb.y)**2)</p>
<p>def move(self):<br />
  self.x += self.velocityX<br />
  self.y += self.velocityY</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Frost</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-63</link>
		<dc:creator>James Frost</dc:creator>
		<pubDate>Sun, 18 May 2008 18:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-63</guid>
		<description>That&#039;s fantastic - thank you! :-D</description>
		<content:encoded><![CDATA[<p>That&#8217;s fantastic &#8211; thank you! <img src='http://www.coderholic.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-62</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 18 May 2008 18:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-62</guid>
		<description>Sorry, I thought I&#039;d posted all of the code, but you&#039;re right some is missing. I&#039;ve added a link at the bottom to download the full source code. 

Let me know if you&#039;ve got any questions about any of it.</description>
		<content:encoded><![CDATA[<p>Sorry, I thought I&#8217;d posted all of the code, but you&#8217;re right some is missing. I&#8217;ve added a link at the bottom to download the full source code. </p>
<p>Let me know if you&#8217;ve got any questions about any of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Frost</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-61</link>
		<dc:creator>James Frost</dc:creator>
		<pubDate>Sun, 18 May 2008 17:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-61</guid>
		<description>The functions to move the boids, and to get their distance to another boid are missing. I tried to re-create them, but clearly something&#039;s rather wrong with my maths, as all the boids just head to the 4 corners of the screen!  :-)</description>
		<content:encoded><![CDATA[<p>The functions to move the boids, and to get their distance to another boid are missing. I tried to re-create them, but clearly something&#8217;s rather wrong with my maths, as all the boids just head to the 4 corners of the screen!  <img src='http://www.coderholic.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.coderholic.com/boids/comment-page-1/#comment-60</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 18 May 2008 17:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dowling.me.uk/wordpress/2007/11/12/boids/#comment-60</guid>
		<description>All the code is listed here. You will need to import pygame, but once you&#039;ve done that there shouldn&#039;t be any missing functions. 

What errors have you seen when you try to run it?</description>
		<content:encoded><![CDATA[<p>All the code is listed here. You will need to import pygame, but once you&#8217;ve done that there shouldn&#8217;t be any missing functions. </p>
<p>What errors have you seen when you try to run it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
