<?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>Patrick Matte &#187; Physics</title>
	<atom:link href="http://www.patrickmatte.com/index.php/category/flash/physics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patrickmatte.com</link>
	<description>Flash programming, animation and design.</description>
	<lastBuildDate>Fri, 20 Aug 2010 00:41:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Playing with constraints in AS3 with the physics engine APE.</title>
		<link>http://www.patrickmatte.com/index.php/2010/02/05/playing-with-constraints-in-as3-physics-engine-ape/</link>
		<comments>http://www.patrickmatte.com/index.php/2010/02/05/playing-with-constraints-in-as3-physics-engine-ape/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 23:52:03 +0000</pubDate>
		<dc:creator>Patrick Matte</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://www.patrickmatte.com/?p=100</guid>
		<description><![CDATA[Playing with a physics engine is so much fun. Be careful not to drag the cube too fast or it might break out. Download the source.]]></description>
			<content:encoded><![CDATA[<p>Playing with a physics engine is so much fun. Be careful not to drag the cube too fast or it might break out.</p>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/constraints/" target="_blank"><img alt="SpringConstraints in APE" src="http://www.patrickmatte.com/stuff/constraints/screentshot.jpg" title="SpringConstraints in APE" width="450" height="280" /></a><p class="wp-caption-text">Click to open SWF</p></div>
<p><a href="http://www.patrickmatte.com/stuff/constraints/constraints.zip">Download the source.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickmatte.com/index.php/2010/02/05/playing-with-constraints-in-as3-physics-engine-ape/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simulating liquid with actionscript 3 and physics engine APE.</title>
		<link>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/</link>
		<comments>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 07:08:00 +0000</pubDate>
		<dc:creator>Patrick Matte</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[TBWA\Chiat\Day Los Angeles]]></category>
		<category><![CDATA[Fluid]]></category>
		<category><![CDATA[Liquid]]></category>

		<guid isPermaLink="false">http://www.patrickmatte.com/?p=29</guid>
		<description><![CDATA[I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it&#8217;s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to [...]]]></description>
			<content:encoded><![CDATA[<p>I created a quick prototype of a realtime liquid simulation for a project over at Chiat a couple weeks ago. The result might not be very realistic, a little cartoony you might say, but it&#8217;s definitely fun to play with (any program that features real-time physics just fascinates me). I made a quick demo to show you how it&#8217;s done.</p>
<p/>
<div class="wp-caption alignnone" style="width: 460px"><a href="http://www.patrickmatte.com/stuff/physicsLiquid/" target="_blank" title="Clickto open SWF"><img src="http://www.patrickmatte.com/stuff/physicsLiquid/image.jpg" alt="Click to open SWF" /></a><p class="wp-caption-text">Click to open SWF</p></div></p>
<p/>
I quickly looked at some <a href="http://geekglue.blogspot.com/2008/01/actionscript-2d-physics-engines.html" target="_blank">reviews</a> to make my choice on the physics engine i would use and <a href="http://www.cove.org/ape/" target="_blank">APE</a> seemed to be the simplest one. It was pretty simple indeed as i was able to put up my original demo in a single day. It was a little tricky to create the physics bottle that would hold the particles. The easiest way i found was to put movieclips on stage in the shape of the bottle and loop through each pieces and create a corresponding APE RectangleParticule. The tricky part is that when you rotate a movieclip in flash, the height and width of the clip changes, so i had to nest a movieclip within to be able to read the correct height and width of the particle.</p>
<p/>
<a href="http://www.patrickmatte.com/stuff/physicsLiquid/flash.zip">Download the source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickmatte.com/index.php/2009/06/16/simulating-liquid-with-a-physics-engine-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
