<?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: Box2D Joints #2 &#8211; Revolute Joints</title>
	<atom:link href="http://blog.thestem.ca/archives/102/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.thestem.ca/archives/102</link>
	<description>Brett Forsyth's professional work showcase, photos, and ramblings.</description>
	<lastBuildDate>Sat, 03 Apr 2010 00:45:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Andre Vidal</title>
		<link>http://blog.thestem.ca/archives/102#comment-55006</link>
		<dc:creator>Andre Vidal</dc:creator>
		<pubDate>Sun, 14 Dec 2008 05:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thestem.ca/?p=102#comment-55006</guid>
		<description>Great talking, it helps alot while trying to figure out the BedTest stuff.
You should set the background to a darker color though ;)</description>
		<content:encoded><![CDATA[<p>Great talking, it helps alot while trying to figure out the BedTest stuff.<br />
You should set the background to a darker color though ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brettf</title>
		<link>http://blog.thestem.ca/archives/102#comment-54138</link>
		<dc:creator>Brettf</dc:creator>
		<pubDate>Thu, 06 Nov 2008 17:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thestem.ca/?p=102#comment-54138</guid>
		<description>It&#039;s fixed now.</description>
		<content:encoded><![CDATA[<p>It&#8217;s fixed now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent</title>
		<link>http://blog.thestem.ca/archives/102#comment-54106</link>
		<dc:creator>Vincent</dc:creator>
		<pubDate>Tue, 04 Nov 2008 09:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thestem.ca/?p=102#comment-54106</guid>
		<description>The link &quot;Full Source not including Box2D&quot; is broken. Can you send me file plz ?</description>
		<content:encoded><![CDATA[<p>The link &#8220;Full Source not including Box2D&#8221; is broken. Can you send me file plz ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luke</title>
		<link>http://blog.thestem.ca/archives/102#comment-43543</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Tue, 15 Jul 2008 23:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thestem.ca/?p=102#comment-43543</guid>
		<description>Also, if you want to see what a box with a broken leg might look like....

			
			// car body
			var carDef:b2PolygonDef = new b2PolygonDef();
			carDef.SetAsOrientedBox(20, 20, new b2Vec2(0, 0), 0);
			carDef.friction = .5;
			carDef.density = .5;
			carDef.restitution=0;
			var carBodyDef:b2BodyDef = new b2BodyDef();
			carBodyDef.position.Set(110,250);
			var carBody = m_world.CreateBody(carBodyDef);
			carBody.CreateShape(carDef)
			carBody.SetMassFromShapes();
			
			//===========================
			// Motor Example
			// A simple motor example
			//===========================		
			pivot.position.Set(80,250);
			var pivotBody1:b2Body = m_world.CreateBody(pivot);
			pivotBody1.CreateShape(pivotPoly)
			pivotBody1.SetMassFromShapes();

			var motorPoly:b2PolygonDef = new b2PolygonDef();
			motorPoly.SetAsOrientedBox(30, 10, new b2Vec2(0, 0), 0);
			motorPoly.friction = .3;
			motorPoly.density = .01;
			motorPoly.restitution = .1;
			
			var motorDef:b2BodyDef = new b2BodyDef();
			motorDef.position.Set(110, 250);
			var motorBody:b2Body = m_world.CreateBody(motorDef);
			motorBody.CreateShape(motorPoly);
			motorBody.CreateShape(carDef);
			motorBody.SetMassFromShapes();

			//Setup the revolute joint definition for later instantiation. rjd is a predefined b2RevoluteJointDef object.
			rjd.Initialize(carBody, motorBody, new b2Vec2(80,250));
			rjd.motorSpeed = -3;
			rjd.maxMotorTorque = 10000000;
			rjd.enableMotor = true;
			rjd.enableLimit = false;
			//Create the motor joint and cast it as a b2RevoluteJoint
			var joint1:b2RevoluteJoint = m_world.CreateJoint(rjd) as b2RevoluteJoint;</description>
		<content:encoded><![CDATA[<p>Also, if you want to see what a box with a broken leg might look like&#8230;.</p>
<p>			// car body<br />
			var carDef:b2PolygonDef = new b2PolygonDef();<br />
			carDef.SetAsOrientedBox(20, 20, new b2Vec2(0, 0), 0);<br />
			carDef.friction = .5;<br />
			carDef.density = .5;<br />
			carDef.restitution=0;<br />
			var carBodyDef:b2BodyDef = new b2BodyDef();<br />
			carBodyDef.position.Set(110,250);<br />
			var carBody = m_world.CreateBody(carBodyDef);<br />
			carBody.CreateShape(carDef)<br />
			carBody.SetMassFromShapes();</p>
<p>			//===========================<br />
			// Motor Example<br />
			// A simple motor example<br />
			//===========================<br />
			pivot.position.Set(80,250);<br />
			var pivotBody1:b2Body = m_world.CreateBody(pivot);<br />
			pivotBody1.CreateShape(pivotPoly)<br />
			pivotBody1.SetMassFromShapes();</p>
<p>			var motorPoly:b2PolygonDef = new b2PolygonDef();<br />
			motorPoly.SetAsOrientedBox(30, 10, new b2Vec2(0, 0), 0);<br />
			motorPoly.friction = .3;<br />
			motorPoly.density = .01;<br />
			motorPoly.restitution = .1;</p>
<p>			var motorDef:b2BodyDef = new b2BodyDef();<br />
			motorDef.position.Set(110, 250);<br />
			var motorBody:b2Body = m_world.CreateBody(motorDef);<br />
			motorBody.CreateShape(motorPoly);<br />
			motorBody.CreateShape(carDef);<br />
			motorBody.SetMassFromShapes();</p>
<p>			//Setup the revolute joint definition for later instantiation. rjd is a predefined b2RevoluteJointDef object.<br />
			rjd.Initialize(carBody, motorBody, new b2Vec2(80,250));<br />
			rjd.motorSpeed = -3;<br />
			rjd.maxMotorTorque = 10000000;<br />
			rjd.enableMotor = true;<br />
			rjd.enableLimit = false;<br />
			//Create the motor joint and cast it as a b2RevoluteJoint<br />
			var joint1:b2RevoluteJoint = m_world.CreateJoint(rjd) as b2RevoluteJoint;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luke</title>
		<link>http://blog.thestem.ca/archives/102#comment-43540</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Tue, 15 Jul 2008 21:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.thestem.ca/?p=102#comment-43540</guid>
		<description>Great stuff. You should chuck this in the useful pages wiki just created. http://www.box2d.org/wiki/index.php?title=List_of_useful_articles.</description>
		<content:encoded><![CDATA[<p>Great stuff. You should chuck this in the useful pages wiki just created. <a href="http://www.box2d.org/wiki/index.php?title=List_of_useful_articles" rel="nofollow">http://www.box2d.org/wiki/index.php?title=List_of_useful_articles</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
