<?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: Creation of a Ragdoll with Flash part 2: Constraints</title>
	<atom:link href="http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Thu, 11 Mar 2010 10:43:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: antoan</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-534352</link>
		<dc:creator>antoan</dc:creator>
		<pubDate>Fri, 01 Jan 2010 14:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-534352</guid>
		<description>I&#039;d really like to see the third part of this tutorial. I&#039;ve always thought making ragdolls in flash is impossible for me, but thanks to your tutorials it seems not as hard as I thought :)</description>
		<content:encoded><![CDATA[<p>I&#8217;d really like to see the third part of this tutorial. I&#8217;ve always thought making ragdolls in flash is impossible for me, but thanks to your tutorials it seems not as hard as I thought :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nminhtai</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-469548</link>
		<dc:creator>nminhtai</dc:creator>
		<pubDate>Mon, 06 Jul 2009 04:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-469548</guid>
		<description>Thanks for great guides!</description>
		<content:encoded><![CDATA[<p>Thanks for great guides!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-445805</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Thu, 07 May 2009 20:15:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-445805</guid>
		<description>Do you know when or if you are going to be pasting another tutorial because this one was extremely helpful?</description>
		<content:encoded><![CDATA[<p>Do you know when or if you are going to be pasting another tutorial because this one was extremely helpful?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-364740</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Thu, 01 Jan 2009 17:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-364740</guid>
		<description>Great stuff.  Are there more lessons in this ragdoll series?</description>
		<content:encoded><![CDATA[<p>Great stuff.  Are there more lessons in this ragdoll series?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-250405</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 13 Aug 2008 12:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-250405</guid>
		<description>make the third bit &gt;:

i want to know how to stop the triangle deforming</description>
		<content:encoded><![CDATA[<p>make the third bit &gt;:</p>
<p>i want to know how to stop the triangle deforming</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tijn</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-244142</link>
		<dc:creator>Tijn</dc:creator>
		<pubDate>Fri, 01 Aug 2008 19:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-244142</guid>
		<description>Hi,

Really like the scripts, but I was wondering if they could be converted to act like a train for example. I have build 2 rollercoaster simulations, but want to improve them with some good scripts. I think I need the ragdoll maths to do it, car1 follows the track, but car 2 till 6 f.e. get off track.

Thnx :)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Really like the scripts, but I was wondering if they could be converted to act like a train for example. I have build 2 rollercoaster simulations, but want to improve them with some good scripts. I think I need the ragdoll maths to do it, car1 follows the track, but car 2 till 6 f.e. get off track.</p>
<p>Thnx :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rolf</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-240738</link>
		<dc:creator>rolf</dc:creator>
		<pubDate>Sun, 27 Jul 2008 10:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-240738</guid>
		<description>Searched your site with google for a while now... but it seems the third article keeps missing. Would love to see it, as your style to write and explain makes it easy to understand and learn.

Thanks so far :)</description>
		<content:encoded><![CDATA[<p>Searched your site with google for a while now&#8230; but it seems the third article keeps missing. Would love to see it, as your style to write and explain makes it easy to understand and learn.</p>
<p>Thanks so far :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamie</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-223749</link>
		<dc:creator>jamie</dc:creator>
		<pubDate>Thu, 10 Jul 2008 07:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-223749</guid>
		<description>Please publish a 3rd part to this tutorial ; ) its great and i would love to see the next steps.</description>
		<content:encoded><![CDATA[<p>Please publish a 3rd part to this tutorial ; ) its great and i would love to see the next steps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xodus</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-219323</link>
		<dc:creator>Xodus</dc:creator>
		<pubDate>Sun, 06 Jul 2008 07:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-219323</guid>
		<description>I would really like the 3rd part.....</description>
		<content:encoded><![CDATA[<p>I would really like the 3rd part&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shp</title>
		<link>http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/comment-page-1/#comment-217997</link>
		<dc:creator>shp</dc:creator>
		<pubDate>Sat, 05 Jul 2008 00:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2007/08/26/creation-of-a-ragdoll-with-flash-part-2-constraints/#comment-217997</guid>
		<description>you can remove the sin, cos and atan to speed up the processing

function constraint(particle1, particle2, distance) {
          dist_x = particle1._x-particle2._x;
          dist_y = particle1._y-particle2._y;
          actual_distance = Math.sqrt(dist_x*dist_x+dist_y*dist_y);
         
          error = actual_distance-distance;
		  
          particle1._x -= (error/2)*dist_x/actual_distance;
          particle1._y -= (error/2)*dist_y/actual_distance;
		  
          particle2._x += (error/2)*dist_x/actual_distance;
          particle2._y += (error/2)*dist_y/actual_distance;
          line.moveTo(particle1._x, particle1._y);
          line.lineTo(particle2._x, particle2._y);
      }</description>
		<content:encoded><![CDATA[<p>you can remove the sin, cos and atan to speed up the processing</p>
<p>function constraint(particle1, particle2, distance) {<br />
          dist_x = particle1._x-particle2._x;<br />
          dist_y = particle1._y-particle2._y;<br />
          actual_distance = Math.sqrt(dist_x*dist_x+dist_y*dist_y);</p>
<p>          error = actual_distance-distance;</p>
<p>          particle1._x -= (error/2)*dist_x/actual_distance;<br />
          particle1._y -= (error/2)*dist_y/actual_distance;</p>
<p>          particle2._x += (error/2)*dist_x/actual_distance;<br />
          particle2._y += (error/2)*dist_y/actual_distance;<br />
          line.moveTo(particle1._x, particle1._y);<br />
          line.lineTo(particle2._x, particle2._y);<br />
      }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
