<?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: How to create concave polygons</title>
	<atom:link href="http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-create-concave-polygons-in-farseerbmx</link>
	<description>Indie Game Development</description>
	<lastBuildDate>Wed, 25 Jan 2012 11:48:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alex</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-44287</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 02 Aug 2008 20:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-44287</guid>
		<description>ah ok, good to hear you figured it out :).</description>
		<content:encoded><![CDATA[<p>ah ok, good to hear you figured it out <img src='http://www.paradeofrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-43959</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Thu, 31 Jul 2008 00:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-43959</guid>
		<description>Yet again, found the problem minutes after... I was getting the rotation of the Ragdoll (Its torso) at the beggining, not in a method which seemed to break it...

Field Rotation:Int = MathHelper.ToDegrees(RagdollTorso.GetRotation())

Then returning it in a method, the GetRotation() should have been called inside the method...</description>
		<content:encoded><![CDATA[<p>Yet again, found the problem minutes after&#8230; I was getting the rotation of the Ragdoll (Its torso) at the beggining, not in a method which seemed to break it&#8230;</p>
<p>Field Rotation:Int = MathHelper.ToDegrees(RagdollTorso.GetRotation())</p>
<p>Then returning it in a method, the GetRotation() should have been called inside the method&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-43954</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Thu, 31 Jul 2008 00:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-43954</guid>
		<description>Hey, ive tried to make my own type (TRagdoll) that goes in the DemoShare and then included into the Engine, every time i try to put it into a simulation using:

Global Ragdoll:TRagdoll = TRagdoll.Create(Centre)
Ragdoll.Load

I get an Memory Exception Error, Any ideas what this could be caused by? If you need i could send you a copy of the Type&#039;s file...

P.S Yes i have set up Methods for creating the type and for Loading it (Drawing it too, but i havent actually used that yet)</description>
		<content:encoded><![CDATA[<p>Hey, ive tried to make my own type (TRagdoll) that goes in the DemoShare and then included into the Engine, every time i try to put it into a simulation using:</p>
<p>Global Ragdoll:TRagdoll = TRagdoll.Create(Centre)<br />
Ragdoll.Load</p>
<p>I get an Memory Exception Error, Any ideas what this could be caused by? If you need i could send you a copy of the Type&#8217;s file&#8230;</p>
<p>P.S Yes i have set up Methods for creating the type and for Loading it (Drawing it too, but i havent actually used that yet)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-43347</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Sat, 26 Jul 2008 15:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-43347</guid>
		<description>Ah, gotcha... Thanks anyway, I guess i could find someway to save the textures made to a JPG or something and edit in some more details myself.</description>
		<content:encoded><![CDATA[<p>Ah, gotcha&#8230; Thanks anyway, I guess i could find someway to save the textures made to a JPG or something and edit in some more details myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-43274</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 26 Jul 2008 05:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-43274</guid>
		<description>Adding support for outlining arbitrary polygon&#039;s wasn&#039;t as trivial as the other helper functions, so for the sake of time/performance I left the polygon function as is. Again, those functions were created more for debug purposes to help development along.

As for your question, I don&#039;t have the code in front of me at the moment but I believe it would be something like similar to this:

local points:Vector2[] = new Vector2[3]
points[0] = Vector2.create(0,-10)
points[1] = Vector2.create(5,10)
points[2] = Vector2.create(-5,10)

local triangleImage:TImage = TDrawingHelper.CreatePolygonTexture(points,TColor.White)</description>
		<content:encoded><![CDATA[<p>Adding support for outlining arbitrary polygon&#8217;s wasn&#8217;t as trivial as the other helper functions, so for the sake of time/performance I left the polygon function as is. Again, those functions were created more for debug purposes to help development along.</p>
<p>As for your question, I don&#8217;t have the code in front of me at the moment but I believe it would be something like similar to this:</p>
<p>local points:Vector2[] = new Vector2[3]<br />
points[0] = Vector2.create(0,-10)<br />
points[1] = Vector2.create(5,10)<br />
points[2] = Vector2.create(-5,10)</p>
<p>local triangleImage:TImage = TDrawingHelper.CreatePolygonTexture(points,TColor.White)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-42655</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Mon, 21 Jul 2008 09:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-42655</guid>
		<description>Why only one colour? And no line width?
So how would i use this to make a Triangle texture with the coordinates:
0, -10
5, 10
-5, 10</description>
		<content:encoded><![CDATA[<p>Why only one colour? And no line width?<br />
So how would i use this to make a Triangle texture with the coordinates:<br />
0, -10<br />
5, 10<br />
-5, 10</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-42632</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 21 Jul 2008 02:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-42632</guid>
		<description>Hi Leonard,
TPhysicsSimulatorView and TDrawingHelper are not core parts of the farseer physics engine, they were used to help the development of the demo application. As such, they are not included in the actual module. To use them you&#039;d have to include them manually in your own code.

Also the function signature for polygon textures is this:

Function CreatePolygonTexture:TImage(points:Vector2[], color:TColor)
</description>
		<content:encoded><![CDATA[<p>Hi Leonard,<br />
TPhysicsSimulatorView and TDrawingHelper are not core parts of the farseer physics engine, they were used to help the development of the demo application. As such, they are not included in the actual module. To use them you&#8217;d have to include them manually in your own code.</p>
<p>Also the function signature for polygon textures is this:</p>
<p>Function CreatePolygonTexture:TImage(points:Vector2[], color:TColor)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-42610</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Mon, 21 Jul 2008 00:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-42610</guid>
		<description>Finally found out how to get modules working on BMax lol, I tried using the Module version but it doesnt sem to allow TPhysicsSimulatorView or TDrawingHelper? Also, I posted this in the tutorial comments but, How do i make Polygon textures???

Ive tried things like:
TDrawingHelper.CreatePolygonTexture(CarVerts, TColor.White, TColor.Black, 3)
But, No dice?</description>
		<content:encoded><![CDATA[<p>Finally found out how to get modules working on BMax lol, I tried using the Module version but it doesnt sem to allow TPhysicsSimulatorView or TDrawingHelper? Also, I posted this in the tutorial comments but, How do i make Polygon textures???</p>
<p>Ive tried things like:<br />
TDrawingHelper.CreatePolygonTexture(CarVerts, TColor.White, TColor.Black, 3)<br />
But, No dice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-42473</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 19 Jul 2008 17:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-42473</guid>
		<description>You&#039;re welcome :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome <img src='http://www.paradeofrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://www.paradeofrain.com/2008/06/how-to-create-concave-polygons-in-farseerbmx/comment-page-1/#comment-42460</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Sat, 19 Jul 2008 12:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.paradeofrain.com/?p=96#comment-42460</guid>
		<description>Nvm... Got it just this second lol

Was Using this sort of thing:
Pos:Vector2 = Box.GetPosition()
SetOrigin(Pos.X - 400, 0)

When i needed:
SetOrigin(400 - Pos.X, 0)

Thanks for your help</description>
		<content:encoded><![CDATA[<p>Nvm&#8230; Got it just this second lol</p>
<p>Was Using this sort of thing:<br />
Pos:Vector2 = Box.GetPosition()<br />
SetOrigin(Pos.X &#8211; 400, 0)</p>
<p>When i needed:<br />
SetOrigin(400 &#8211; Pos.X, 0)</p>
<p>Thanks for your help</p>
]]></content:encoded>
	</item>
</channel>
</rss>

