<?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: The magic of compound objects with Box2D</title>
	<atom:link href="http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:12:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Zerchan</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-844552</link>
		<dc:creator>Zerchan</dc:creator>
		<pubDate>Wed, 01 Jun 2011 16:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-844552</guid>
		<description>for(var currentBody:b2Body = world.GetBodyList(); currentBody; currentBody = currentBody.GetNext()){
				if(currentBody.GetUserData()){
					if(currentBody.GetUserData().skin){
						currentBody.GetUserData().skin.x = currentBody.GetPosition().x*worldScale;
						currentBody.GetUserData().skin.y = currentBody.GetPosition().y*worldScale;
						currentBody.GetUserData().skin.rotation = currentBody.GetAngle()*(180/Math.PI);
					}
				}

The render loop it&#039;s the same??</description>
		<content:encoded><![CDATA[<p>for(var currentBody:b2Body = world.GetBodyList(); currentBody; currentBody = currentBody.GetNext()){<br />
				if(currentBody.GetUserData()){<br />
					if(currentBody.GetUserData().skin){<br />
						currentBody.GetUserData().skin.x = currentBody.GetPosition().x*worldScale;<br />
						currentBody.GetUserData().skin.y = currentBody.GetPosition().y*worldScale;<br />
						currentBody.GetUserData().skin.rotation = currentBody.GetAngle()*(180/Math.PI);<br />
					}<br />
				}</p>
<p>The render loop it&#8217;s the same??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zerchan</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-844551</link>
		<dc:creator>Zerchan</dc:creator>
		<pubDate>Wed, 01 Jun 2011 16:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-844551</guid>
		<description>How can I render textures movieClips in the compound object ?</description>
		<content:encoded><![CDATA[<p>How can I render textures movieClips in the compound object ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wouter</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-633079</link>
		<dc:creator>wouter</dc:creator>
		<pubDate>Fri, 03 Sep 2010 12:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-633079</guid>
		<description>for those who find this usefull.
i made an editor for drawing complex shapes for box2d.
in this version you can grab the generated xml from te process xml button.

find it at:

http://www.nuvorm.nl/start/index.php?option=com_content&amp;view=article&amp;id=83:box-2d-complex-shape-editor&amp;catid=40:experiments&amp;Itemid=53</description>
		<content:encoded><![CDATA[<p>for those who find this usefull.<br />
i made an editor for drawing complex shapes for box2d.<br />
in this version you can grab the generated xml from te process xml button.</p>
<p>find it at:</p>
<p><a href="http://www.nuvorm.nl/start/index.php?option=com_content&#038;view=article&#038;id=83:box-2d-complex-shape-editor&#038;catid=40:experiments&#038;Itemid=53" rel="nofollow">http://www.nuvorm.nl/start/index.php?option=com_content&#038;view=article&#038;id=83:box-2d-complex-shape-editor&#038;catid=40:experiments&#038;Itemid=53</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pbear</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-568297</link>
		<dc:creator>pbear</dc:creator>
		<pubDate>Thu, 15 Apr 2010 21:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-568297</guid>
		<description>For those getting no result, you need to add a line to set the flags. It was apparently dropped from the previous version. Right before these lines:

m_world.SetDebugDraw(dbgDraw);
// debug draw end

Add:
dbgDraw.m_drawFlags = b2DebugDraw.e_shapeBit &#124; b2DebugDraw.e_jointBit &#124; b2DebugDraw.e_coreShapeBit &#124; b2DebugDraw.e_aabbBit &#124; b2DebugDraw.e_obbBit &#124; b2DebugDraw.e_pairBit &#124; b2DebugDraw.e_centerOfMassBit;
			
And you should be able to see what is going on.</description>
		<content:encoded><![CDATA[<p>For those getting no result, you need to add a line to set the flags. It was apparently dropped from the previous version. Right before these lines:</p>
<p>m_world.SetDebugDraw(dbgDraw);<br />
// debug draw end</p>
<p>Add:<br />
dbgDraw.m_drawFlags = b2DebugDraw.e_shapeBit | b2DebugDraw.e_jointBit | b2DebugDraw.e_coreShapeBit | b2DebugDraw.e_aabbBit | b2DebugDraw.e_obbBit | b2DebugDraw.e_pairBit | b2DebugDraw.e_centerOfMassBit;</p>
<p>And you should be able to see what is going on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Real world catapult prototype using Box2D : Emanuele Feronato - italian geek and PROgrammer</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-565094</link>
		<dc:creator>Real world catapult prototype using Box2D : Emanuele Feronato - italian geek and PROgrammer</dc:creator>
		<pubDate>Wed, 07 Apr 2010 20:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-565094</guid>
		<description>[...] and uncommented code, but a lot of useful information about compound objects, revolute joints and [...]</description>
		<content:encoded><![CDATA[<p>[...] and uncommented code, but a lot of useful information about compound objects, revolute joints and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Edmond</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-458270</link>
		<dc:creator>Justin Edmond</dc:creator>
		<pubDate>Sat, 06 Jun 2009 18:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-458270</guid>
		<description>I&#039;m getting the same issue as some other people where nothing is showing up...

I&#039;m digging around the code but I can&#039;t find a reason why it should be doing this.</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the same issue as some other people where nothing is showing up&#8230;</p>
<p>I&#8217;m digging around the code but I can&#8217;t find a reason why it should be doing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Understanding custom polygons in Box2D : Emanuele Feronato</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-357280</link>
		<dc:creator>Understanding custom polygons in Box2D : Emanuele Feronato</dc:creator>
		<pubDate>Fri, 19 Dec 2008 17:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-357280</guid>
		<description>[...] week I explained The magic of compound objects with Box2D, now it&#8217;s time to understanding custom [...]</description>
		<content:encoded><![CDATA[<p>[...] week I explained The magic of compound objects with Box2D, now it&#8217;s time to understanding custom [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samuvagyok</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-354580</link>
		<dc:creator>samuvagyok</dc:creator>
		<pubDate>Mon, 15 Dec 2008 13:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-354580</guid>
		<description>Good article!
Have you ever tried to use &quot;custom&quot; polygons?
When I created one in box2d it seems it doesn&#039;t use the physics - no gravity, no collision etc. and I still can&#039;t find any helpful post in the box2d forum. Maybe I missed something that is in the setAsBox method...
Would you write an article about custom shapes?
Thanks, and best regards!
S</description>
		<content:encoded><![CDATA[<p>Good article!<br />
Have you ever tried to use &#8220;custom&#8221; polygons?<br />
When I created one in box2d it seems it doesn&#8217;t use the physics &#8211; no gravity, no collision etc. and I still can&#8217;t find any helpful post in the box2d forum. Maybe I missed something that is in the setAsBox method&#8230;<br />
Would you write an article about custom shapes?<br />
Thanks, and best regards!<br />
S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pippo</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-354018</link>
		<dc:creator>Pippo</dc:creator>
		<pubDate>Sun, 14 Dec 2008 18:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-354018</guid>
		<description>using debugsrite</description>
		<content:encoded><![CDATA[<p>using debugsrite</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruslan</title>
		<link>http://www.emanueleferonato.com/2008/12/12/the-magic-of-compound-objects-with-box2d/#comment-353587</link>
		<dc:creator>ruslan</dc:creator>
		<pubDate>Sun, 14 Dec 2008 00:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=732#comment-353587</guid>
		<description>How do you visualize the shapes(boxes)??</description>
		<content:encoded><![CDATA[<p>How do you visualize the shapes(boxes)??</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 5/11 queries in 0.091 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-11 06:19:35 -->
