<?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: Managing multiple balls collisions with Flash: AS3 version</title>
	<atom:link href="http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Tue, 16 Mar 2010 16:46:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: carograph</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-547182</link>
		<dc:creator>carograph</dc:creator>
		<pubDate>Mon, 15 Feb 2010 15:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-547182</guid>
		<description>beautiful solution. i had been tampering with this for a while, as i am learning to switch from AS2 to AS3. Thanks for the inspiration.

Now for a question:
would it be possible to load this swf into another fla, and using a movie clip as holder, that would increase and decrease in size, thus letting the balls react to the surrounding space it is being loaded into? volume vs. pressure sort of thing? i hope i am explaining myself clearly. any suggestions would be very helpful. I am a gamer newby, so help very much appreciated.

Cheerio
carograph</description>
		<content:encoded><![CDATA[<p>beautiful solution. i had been tampering with this for a while, as i am learning to switch from AS2 to AS3. Thanks for the inspiration.</p>
<p>Now for a question:<br />
would it be possible to load this swf into another fla, and using a movie clip as holder, that would increase and decrease in size, thus letting the balls react to the surrounding space it is being loaded into? volume vs. pressure sort of thing? i hope i am explaining myself clearly. any suggestions would be very helpful. I am a gamer newby, so help very much appreciated.</p>
<p>Cheerio<br />
carograph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-536976</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Tue, 12 Jan 2010 16:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-536976</guid>
		<description>very elegant solution - I was working on the same thing, but mine seemed more complicated since I was rotating the velocity vectors to calculate the normals.
One issue with this:  you determine if the balls are closer than the radius and move them back to the point at which they are just touching...you should figure how far back you moved, and then move a corresponding amount AFTER the collision.  right now if they are very fast and the overlap is quite large, the bounce off effect is slightly distorted since they are simply moving back to the point of collision at the start of the next frame.  minor point depending upon the frame rate of the movie and the radius of the balls, but something to consider...</description>
		<content:encoded><![CDATA[<p>very elegant solution &#8211; I was working on the same thing, but mine seemed more complicated since I was rotating the velocity vectors to calculate the normals.<br />
One issue with this:  you determine if the balls are closer than the radius and move them back to the point at which they are just touching&#8230;you should figure how far back you moved, and then move a corresponding amount AFTER the collision.  right now if they are very fast and the overlap is quite large, the bounce off effect is slightly distorted since they are simply moving back to the point of collision at the start of the next frame.  minor point depending upon the frame rate of the movie and the radius of the balls, but something to consider&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-533726</link>
		<dc:creator>Aditya</dc:creator>
		<pubDate>Tue, 29 Dec 2009 12:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-533726</guid>
		<description>well i got what i was trying for  utilizing the CDK and the angle handling from Andrew cooks implementation . A decent pixel based object collision detection.  

http://adityagameprogrammer.blogspot.com/2009/12/pixel-perfect-collision-system-as3.html

i would appreciate your input on this if you find the time.</description>
		<content:encoded><![CDATA[<p>well i got what i was trying for  utilizing the CDK and the angle handling from Andrew cooks implementation . A decent pixel based object collision detection.  </p>
<p><a href="http://adityagameprogrammer.blogspot.com/2009/12/pixel-perfect-collision-system-as3.html" rel="nofollow">http://adityagameprogrammer.blogspot.com/2009/12/pixel-perfect-collision-system-as3.html</a></p>
<p>i would appreciate your input on this if you find the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-533684</link>
		<dc:creator>Aditya</dc:creator>
		<pubDate>Tue, 29 Dec 2009 09:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-533684</guid>
		<description>Hi Emanuele,

Firstly muchos gracias and kudos for your great blog. 
Secondly
Thank you  Andrew Cook for working this out in AS3. 
i have been Obsessing over this for quite some time now. ball vs ball collision was my first experiment when i started learning action script and recently i have been on the look out for getting redoing the same with Pixel Perfect Collision Detection.
had come across this great CDK by Corey Oniel
http://www.coreyoneil.com/portfolio/index.php?project=5. had been successful at detecting the collisions using it but was unable to handle the ball reflections after collision. I find this Example very good and helpful. 
Thanks</description>
		<content:encoded><![CDATA[<p>Hi Emanuele,</p>
<p>Firstly muchos gracias and kudos for your great blog.<br />
Secondly<br />
Thank you  Andrew Cook for working this out in AS3.<br />
i have been Obsessing over this for quite some time now. ball vs ball collision was my first experiment when i started learning action script and recently i have been on the look out for getting redoing the same with Pixel Perfect Collision Detection.<br />
had come across this great CDK by Corey Oniel<br />
<a href="http://www.coreyoneil.com/portfolio/index.php?project=5" rel="nofollow">http://www.coreyoneil.com/portfolio/index.php?project=5</a>. had been successful at detecting the collisions using it but was unable to handle the ball reflections after collision. I find this Example very good and helpful.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-525466</link>
		<dc:creator>Nicholas</dc:creator>
		<pubDate>Mon, 23 Nov 2009 03:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-525466</guid>
		<description>Can someone debug this code and tell me out a formula that can solve the distance between my floor of my space and the ball object. Here is the start. 

if(ball.ypos &gt; floor)
			{
				ball.ypos = floor;
				
				// we want the bouncing noise to stop when the balls are not bouncing
					trace(&quot;ball hitting floor variable required&quot;);
					knock.play();
				
				ball.vy *= bounce;
			}

where floor variable causes ball to &quot;bounce&quot; and figure out their distances and if the number is close to 0, to omit the sound of a ball bouncing on glass.</description>
		<content:encoded><![CDATA[<p>Can someone debug this code and tell me out a formula that can solve the distance between my floor of my space and the ball object. Here is the start. </p>
<p>if(ball.ypos &gt; floor)<br />
			{<br />
				ball.ypos = floor;</p>
<p>				// we want the bouncing noise to stop when the balls are not bouncing<br />
					trace(&#8220;ball hitting floor variable required&#8221;);<br />
					knock.play();</p>
<p>				ball.vy *= bounce;<br />
			}</p>
<p>where floor variable causes ball to &#8220;bounce&#8221; and figure out their distances and if the number is close to 0, to omit the sound of a ball bouncing on glass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DQvsRA</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-522742</link>
		<dc:creator>DQvsRA</dc:creator>
		<pubDate>Mon, 16 Nov 2009 14:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-522742</guid>
		<description>Hello.
Interesting thing will be if we want to calculate and create a multi collision balls with different radius. Is anybode know how to create this effects?</description>
		<content:encoded><![CDATA[<p>Hello.<br />
Interesting thing will be if we want to calculate and create a multi collision balls with different radius. Is anybode know how to create this effects?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saiyidah</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-522726</link>
		<dc:creator>Saiyidah</dc:creator>
		<pubDate>Mon, 16 Nov 2009 14:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-522726</guid>
		<description>Hi there, I am currently using these exact codes for a school project of mine. I am very very new to coding and of course AS3. My question is that, I have actually import these two classes into the fla file that I&#039;m working on. But I want the balls to be remove after let say frame #220. How do I go about with it? Anybody can help me, please?

Thank you very much. I really hope somebody will reply.

Regards,
Saiyidah</description>
		<content:encoded><![CDATA[<p>Hi there, I am currently using these exact codes for a school project of mine. I am very very new to coding and of course AS3. My question is that, I have actually import these two classes into the fla file that I&#8217;m working on. But I want the balls to be remove after let say frame #220. How do I go about with it? Anybody can help me, please?</p>
<p>Thank you very much. I really hope somebody will reply.</p>
<p>Regards,<br />
Saiyidah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AS3 Ball on Ball Collision, Part 1 &#171; Dan Cotton</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-519787</link>
		<dc:creator>AS3 Ball on Ball Collision, Part 1 &#171; Dan Cotton</dc:creator>
		<pubDate>Tue, 10 Nov 2009 14:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-519787</guid>
		<description>[...] detection and physics are both a major part of creating a pool game, and after finding this (Linky ) article on Emanuele Feronato&#8217;s website, I choseto modify it for my style of naming [...]</description>
		<content:encoded><![CDATA[<p>[...] detection and physics are both a major part of creating a pool game, and after finding this (Linky ) article on Emanuele Feronato&#8217;s website, I choseto modify it for my style of naming [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ciro Continisio</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-397032</link>
		<dc:creator>Ciro Continisio</dc:creator>
		<pubDate>Thu, 26 Feb 2009 14:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-397032</guid>
		<description>If I remember correctly, mcBall1:* means that mcBall1 is of type undefined, so yes, it can be any type.</description>
		<content:encoded><![CDATA[<p>If I remember correctly, mcBall1:* means that mcBall1 is of type undefined, so yes, it can be any type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George Kazanjian</title>
		<link>http://www.emanueleferonato.com/2008/06/07/managing-multiple-balls-collisions-with-flash-as3-version/comment-page-1/#comment-381185</link>
		<dc:creator>George Kazanjian</dc:creator>
		<pubDate>Sun, 01 Feb 2009 00:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=288#comment-381185</guid>
		<description>Anyone care to help explain this definition ?

var mcBall1:* = mcBallContainer.getChildAt( i );

especially the * . Do we mean McBall1 is of type object and we don&#039;t care which type at this point ? 
Thanks in advance</description>
		<content:encoded><![CDATA[<p>Anyone care to help explain this definition ?</p>
<p>var mcBall1:* = mcBallContainer.getChildAt( i );</p>
<p>especially the * . Do we mean McBall1 is of type object and we don&#8217;t care which type at this point ?<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
</channel>
</rss>
