<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>{ P I X E L W E L D E R S } &#187; Physics</title>
	<link>http://pixelwelders.com/blog</link>
	<description>Flash + Flex + Game Dev + Grammar?</description>
	<pubDate>Thu, 13 Jan 2011 13:26:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Forward Kinematics in AS3</title>
		<link>http://pixelwelders.com/blog/game-design/2008/forward-kinematics-as3/</link>
		<comments>http://pixelwelders.com/blog/game-design/2008/forward-kinematics-as3/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 09:05:09 +0000</pubDate>
		<dc:creator>Zack Jordan</dc:creator>
		
		<category><![CDATA[ActionScript 3.0]]></category>

		<category><![CDATA[Game Design]]></category>

		<category><![CDATA[Physics]]></category>

		<category><![CDATA[kinematics]]></category>

		<guid isPermaLink="false">http://pixelwelders.com/blog/actionscript-30/2008/forward-kinematics/</guid>
		<description><![CDATA[I must confess, firstly, that a week ago I didn't know what forward kinematics were.  Everyone seems to be talking about <em>inverse</em> kinematics lately (e.g. "ragdoll" physics), with no love at all for her sister, <em>forward</em> kinematics.  And really, if such a thing may be said, forward kinematics is the hot sister- I'd take her over inverse anyday.]]></description>
			<content:encoded><![CDATA[<h3>A Confession</h3>
<p><a href='http://pixelwelders.com/blog/wp-content/uploads/2008/04/skeleton.jpg' title='Kinematics in action'><img src='http://pixelwelders.com/blog/wp-content/uploads/2008/04/skeleton.jpg' alt='Kinematics in action' style='float:right;margin:.5em 0em 1.5em 1.5em;padding:0;'/></a><br />
I must confess, firstly, that a week ago I didn&#8217;t know what forward kinematics were.  Everyone seems to be talking about <em>inverse</em> kinematics lately (&#8221;ragdoll&#8221; physics), with no love at all for her sister <em>forward</em> kinematics.  And really, if such a thing may be said, forward kinematics is the hot sister- I&#8217;d take her over inverse anyday.</p>
<p>Here&#8217;s the difference:  Sometimes its desirable to model movement based on a system of interconnected objects.  Your body would be such a system (your hip bone&#8217;s connected to your thigh bone, your leg bone&#8217;s connected to your calf bone, your calf bone&#8217;s connected to your foot bone, etcetera).  Inverse kinematics deals with all of this starting from your foot and working inward.  This would be ideal for, say, modeling you falling down the stairs or off a building- provided that you were unconscious.  The motion that your foot produces during the fall is determines the angle and position of your calf, which then determines those things for your thigh.</p>
<p>Now forward kinematics, on the other hand, goes the other way.  The reason you were unconscious in the above example is because any movement started from your body (i.e. flailing in panic as you fell off the building) would be <em>forward</em> kinematics- it starts from your body and moves to the end of the system.  Forward kinematics is used to model more mundane things like walking.  The thigh is rotated, which determines the position of the calf.  The calf is rotated, which in turn determines the position of the foot.  Thus, the position of the foot is determined by motion originating at the body, not the reverse.</p>
<h3>An Example of Forward Kinematics</h3>
<p>Okay, so that&#8217;s what forward kinematics is.  And here is what it looks like (click the image to see).</p>
<p><a href='http://pixelwelders.com/experiments/forward_kinematics' target='_blank'><img src='http://pixelwelders.com/blog/wp-content/uploads/2008/04/walker.jpg' alt='AS3 Forward Kinematics' /></a></p>
<p>See?  He really walks!</p>
<h3>A Sponsored Link</h3>
<p>(can&#8217;t say I wasn&#8217;t honest&#8230;)</p>
<p>I feel that I should also confess that I got the germ of this little engine from this book: </p>
<p><a href="http://www.amazon.com/gp/product/1590597915?ie=UTF8&#038;tag=pixelwelders-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1590597915" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.amazon.com/gp/product/1590597915?ie=UTF8&#038;tag=pixelwelders-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1590597915');">Foundation Actionscript 3.0 Animation: Making Things Move!</a><img src="http://www.assoc-amazon.com/e/ir?t=pixelwelders-20&#038;l=as2&#038;o=1&#038;a=1590597915" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> </p>
<p>It&#8217;s by some guy named Keith Peters who apparently knows his way around the VM2.  It&#8217;s not a ton of classes- two in his version, three in mine.  So if you&#8217;ve got $25 and about an hour, give it a shot.  And if you buy it from the link above, I get two dollars or something.</p>
]]></content:encoded>
			<wfw:commentRss>http://pixelwelders.com/blog/game-design/2008/forward-kinematics-as3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Two Reasons to Love Physics</title>
		<link>http://pixelwelders.com/blog/game-design/2008/two-reasons-to-love-physics/</link>
		<comments>http://pixelwelders.com/blog/game-design/2008/two-reasons-to-love-physics/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 06:58:26 +0000</pubDate>
		<dc:creator>Zack Jordan</dc:creator>
		
		<category><![CDATA[Game Design]]></category>

		<category><![CDATA[Physics]]></category>

		<category><![CDATA[APE]]></category>

		<guid isPermaLink="false">http://pixelwelders.com/blog/?p=7</guid>
		<description><![CDATA[I actually never even took a physics class in high school, but that's probably because I didn't associate it with explosions. It's also because my schedule was already taken up with classes like Intro to Small Arms and Street Slang 101- both of which have served me admirably in my current career.  However, now I'm beginning to regret the physics-less education of my youth.]]></description>
			<content:encoded><![CDATA[<p>He&#8217;s 71, teaches at MIT, and he does multiple full dress rehearsals of his lectures before he unleashes them on his unsuspecting pupils. His class costs the school three hundred grand per semester. And he&#8217;s definitely the guy that you wished was <em>your</em> physics teacher. But he wasn&#8217;t- because if you&#8217;re reading my blog, you don&#8217;t go to MIT.  Ladies and gents, Walter Lewin.</p>
<p><object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/7Zc9Nuoe2Ow&#038;rel=0&#038;color1=0x234900&#038;color2=0x4e9e00&#038;hl=en"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/7Zc9Nuoe2Ow&#038;rel=0&#038;color1=0x234900&#038;color2=0x4e9e00&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>I actually never even took a physics class in high school, but that&#8217;s probably because I didn&#8217;t associate it with explosions. It&#8217;s also because my schedule was already taken up with classes like Intro to Small Arms and Street Slang 101- both of which have served me admirably in my current career.  However, now I&#8217;m beginning to regret the physics-less education of my youth.</p>
<p>Or rather, I <em>would</em> be regretting my ignorance if not for <a href="http://cove.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://cove.org');">Alec Cove</a>, who has given the world the gift of the <a href="http://www.cove.org/ape/index.htm" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.cove.org/ape/index.htm');">Actionscript Physics Engine</a> (APE).  It&#8217;s not the only AS3 physics library out there, but in my opinion it&#8217;s certainly the simplest to use.  It doesn&#8217;t seem to have the support of <a href="http://fisix.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://fisix.com');">Fisix</a> or the features of <a href="http://box2dflash.sourceforge.net/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://box2dflash.sourceforge.net/');">Box2D</a>, but if you just want to pick up a physics engine and run with it, I suggest you give APE a try.</p>
<p>Also, if you&#8217;re interested, you can download 35 hours of video lectures by this Walter Lewin guy at MIT&#8217;s <a href="http://ocw.mit.edu/OcwWeb/Physics/8-01Physics-IFall1999/VideoLectures/index.htm" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://ocw.mit.edu/OcwWeb/Physics/8-01Physics-IFall1999/VideoLectures/index.htm');">OpenCourseWare</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pixelwelders.com/blog/game-design/2008/two-reasons-to-love-physics/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

