<?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>Richard Lord &#187; Physics</title>
	<atom:link href="http://www.richardlord.net/blog/tag/physics/feed" rel="self" type="application/rss+xml" />
	<link>http://www.richardlord.net</link>
	<description>Actionscript/Flex, PHP and Java developer</description>
	<lastBuildDate>Mon, 23 Jan 2012 17:07:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>If I had more time</title>
		<link>http://www.richardlord.net/blog/if-i-had-more-time</link>
		<comments>http://www.richardlord.net/blog/if-i-had-more-time#comments</comments>
		<pubDate>Fri, 13 Jun 2008 10:28:28 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/if-i-had-more-time/</guid>
		<description><![CDATA[<p>One of the frustrations of being busy with client work is the lack of time to investigate, experiment and play with interesting stuff. One day I'll have time to try all this stuff but until then, here's a simple list of the flash/flex tools I'd like to play with. Maybe you'll find something interesting here...</p>]]></description>
			<content:encoded><![CDATA[<p>One of the frustrations of being busy with client work is the lack of time to investigate, experiment and play with interesting stuff. One day I&#8217;ll have time to try all this stuff but until then, here&#8217;s a simple list of the flash/flex tools I&#8217;d like to play with. Maybe you&#8217;ll find something interesting here.</p>

<h3>Flash Player 10 beta</h3>

<p>Lots of cool new stuff in the Flash Player 10 beta, if only I had time to try it out.</p>

<ul>
<li><a href="http://labs.adobe.com/downloads/flashplayer10.html">The player</a></li>
<li><a href="http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10+Beta+with+Flex+SDK+3.0.x">The Flex compiler</a></li>
<li><a href="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_as3langref_052008.zip">The docs</a></li>
</ul>

<h3>3D engines</h3>

<p>I still haven&#8217;t had time to do much with 3D in Flash (although I need to know to get Flint working in the 3D engines). I want time to experiment with the 3D engines and discover their strengths and weaknesses.</p>

<ul>
<li><a href="http://blog.papervision3d.org/">Papervision3D</a></li>
<li><a href="http://www.flashsandy.org/blog/">Sandy3D</a></li>
<li><a href="http://away3d.com/">Away3D</a></li>
<li><a href="http://www.alternativaplatform.com/en/alternativa3d/">Alternative3D</a></li>
<li><a href="http://five3d.mathieu-badimon.com/">Five3D</a></li>
</ul>

<h3>Physics engines</h3>

<p>I also want time to try out the 2D and 3D physics engines.</p>

<ul>
<li><a href="http://sourceforge.net/projects/box2dflash">Box2DFlashAS3</a></li>
<li><a href="http://code.google.com/p/motor2/">Motor 2</a></li>
<li><a href="http://code.google.com/p/ape/">APE</a></li>
<li><a href="http://code.google.com/p/foam-as3/">FOAM</a></li>
<li><a href="http://www.fisixengine.com/">Fisix</a></li>
<li><a href="http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/">Wow-engine</a></li>
</ul>

<h3>Flex tools</h3>

<p>There&#8217;s a number of Flex tools/libraries that I want to investigate. Top of the list are</p>

<ul>
<li><a href="http://mate.asfusion.com/">Mate</a></li>
<li><a href="http://code.google.com/p/openflux/">OpenFlux</a></li>
</ul>

<h3>What I&#8217;m doing now</h3>

<p>Meanwhile, I only have a little spare time, which I&#8217;m using to develop the next version of <a href="http://flintparticles.org/">Flint</a>. I have some other personal projects I want to work on but they are all on hold for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardlord.net/blog/if-i-had-more-time/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Physics for Flash Games: Slides</title>
		<link>http://www.richardlord.net/blog/physics-for-flash-games-slides</link>
		<comments>http://www.richardlord.net/blog/physics-for-flash-games-slides#comments</comments>
		<pubDate>Fri, 01 Jun 2007 13:30:05 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Game development]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/physics-for-flash-games-slides/</guid>
		<description><![CDATA[<p>It was great to see so many people at my presentation yesterday at LFPUG. The presentation seemed to go down very well and I had a great evening. Here's the slides from my presentation. If you weren't there, they may not make a lot of sense without my talking over the top of them, but I suspect lots of people who were there want to look at the code again.</p>
]]></description>
			<content:encoded><![CDATA[<p>It was great to see so many people at my presentation yesterday at <a href="http://lfpug.com/">LFPUG</a>. The presentation seemed to go down very well and I had a great evening. Here&#8217;s the slides from my presentation. If you weren&#8217;t there, they may not make a lot of sense without my talking over the top of them, but I suspect lots of people who were there want to look at the code again.</p>

<p>The presentation is driven entirely from the keyboard arrow keys &#8211; left and right to move through the slides and up and down to scroll the text in the code displays.</p>

<p><b><a href="/images/slides/lfpug1/Slideshow.swf">Click here for the slides</a></b> (flash required)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.richardlord.net/blog/physics-for-flash-games-slides/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Physics for Flash Games</title>
		<link>http://www.richardlord.net/blog/physics-for-flash-games</link>
		<comments>http://www.richardlord.net/blog/physics-for-flash-games#comments</comments>
		<pubDate>Tue, 29 May 2007 07:29:17 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Game development]]></category>
		<category><![CDATA[LFPUG]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/physics-for-flash-games/</guid>
		<description><![CDATA[<p>On Thursday this week, I'm doing a presentation on Physics for Flash Games at the <a href="http://www.lfpug.com/31st-may-2007-31052007/">London Flash Platform User Group</a>. It's a tricky presentation to plan because there's such a wide range of knowledge and ability among the audience but I think I've come up with a presentation that has something for everyone. Hope to see lots of London Flash users there. There's no membership requirement so if you're interested just turn up. Or better still <a href="http://www.lfpug.com/31st-may-2007-31052007/">sign up on the web page</a> because then you have a chance to win one of the prizes in the raffle.</p>]]></description>
			<content:encoded><![CDATA[<p>On Thursday this week, I&#8217;m doing a presentation on Physics for Flash Games at the <a href="http://www.lfpug.com/31st-may-2007-31052007/">London Flash Platform User Group</a>. It&#8217;s a tricky presentation to plan because there&#8217;s such a wide range of knowledge and ability among the audience but I think I&#8217;ve come up with a presentation that has something for everyone. Hope to see lots of London Flash users there. There&#8217;s no membership requirement so if you&#8217;re interested just turn up. Or better still <a href="http://www.lfpug.com/31st-may-2007-31052007/">sign up on the web page</a> because then you have a chance to win one of the prizes in the raffle.</p>

<p>The slides from this talk are now <a href="/presentations/physics-for-flash-games">online here</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.richardlord.net/blog/physics-for-flash-games/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Simple example of acceleration</title>
		<link>http://www.richardlord.net/blog/simple-example-of-acceleration</link>
		<comments>http://www.richardlord.net/blog/simple-example-of-acceleration#comments</comments>
		<pubDate>Fri, 26 Jan 2007 14:02:05 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Physics]]></category>

		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/simple-example-of-acceleration/</guid>
		<description><![CDATA[<p>While teaching my <a href="/about/training/">Actionscript Fundamentals</a> course a couple of days ago one of the trainees asked me how to do a simple example of using acceleration and deceleration within an animation. Here it is...</p>]]></description>
			<content:encoded><![CDATA[<p>While teaching my <a href="/about/training/">Actionscript Fundamentals</a> course a couple of days ago one of the trainees asked me how to do a simple example of using acceleration and deceleration within an animation. Here it is. Roll over the centre of the propeller below.</p>

<div class="spaced"><div id="swf4f2e90e384596">
<p><b>Flash required:</b> You need version 10 or later of the free Flash player from Adobe to use this content. To download and install the free player from Adobe's web site <a href="http://get.adobe.com/flashplayer/">click here</a>.</p>
</div>
<script type="text/javascript">
var params = {loop:"false",quality:"high",allowfullscreen:"true"};
var flashvars = {};
swfobject.embedSWF("/images/blog/propeller.swf", "swf4f2e90e384596", "300", "300", "10.0.0", "/swf/expressInstall.swf", flashvars, params, {} );
</script></div>

<p>The code looks like this.</p>

<pre class="code">var rate:Number = 0;
var acceleration:Number = 0.5;

prop_mc.centre_mc.onRollOver = function()
{
    prop_mc.onEnterFrame = function()
    {
        rate += acceleration;
        rate = Math.min( rate, 15 );
        prop_mc._rotation += rate;
    }
};

prop_mc.centre_mc.onRollOut = function()
{
    prop_mc.onEnterFrame = function()
    {
        rate -= acceleration;
        rate = Math.max( rate, 0 );
        prop_mc._rotation += rate;
    }
};

prop_mc.centre_mc.onDragOver = prop_mc.centre_mc.onRollOver;
prop_mc.centre_mc.onDragOut = prop_mc.centre_mc.onRollOut;</pre>

<p>For a brief explaination, rate is the speed of rotation of the propeller. When the mouse is over the propeller, the rate increases each frame by the acceleration and is capped at a maximum rate of 15. When the mouse is not over the propeller, the rate decreases each frame by the acceleration and is capped at zero. The result is what you see.</p>

<p>The source file can be <a href="/files/propeller.zip">downloaded here</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.richardlord.net/blog/simple-example-of-acceleration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

