<?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: It all started as a performance test&#8230;</title>
	<atom:link href="http://www.nulldesign.de/2007/12/01/it-all-started-as-a-performance-test/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nulldesign.de/2007/12/01/it-all-started-as-a-performance-test/</link>
	<description>blog &#38; portfolio</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:02:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://www.nulldesign.de/2007/12/01/it-all-started-as-a-performance-test/comment-page-1/#comment-12130</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 29 Jul 2009 09:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.nulldesign.de/2007/12/01/it-all-started-as-a-performance-test/#comment-12130</guid>
		<description>Hi Jonathan,

I personally use a mixture of SIN and COS to position bullets if they are coming out of a turret on a rotated item (that is - if they are being fired from a turret that doesn&#039;t originate from 0,0)

Adjust your firing by X/Y pixels from the center:
var ang:Number = rotation + 90; (or whatever figure you need)
var x_offset:Number = Math.cos(ang / 180 * Math.PI) * DISTANCE;
var y_offset:Number = Math.sin(ang / 180 * Math.PI) * DISTANCE;</description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>I personally use a mixture of SIN and COS to position bullets if they are coming out of a turret on a rotated item (that is &#8211; if they are being fired from a turret that doesn&#8217;t originate from 0,0)</p>
<p>Adjust your firing by X/Y pixels from the center:<br />
var ang:Number = rotation + 90; (or whatever figure you need)<br />
var x_offset:Number = Math.cos(ang / 180 * Math.PI) * DISTANCE;<br />
var y_offset:Number = Math.sin(ang / 180 * Math.PI) * DISTANCE;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.nulldesign.de/2007/12/01/it-all-started-as-a-performance-test/comment-page-1/#comment-8436</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Thu, 02 Apr 2009 09:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.nulldesign.de/2007/12/01/it-all-started-as-a-performance-test/#comment-8436</guid>
		<description>hi..i was wondering how do you position the bullets that&#039;s coming out of the ship..i tried to create a tank that will fire cannons..but i can&#039;t position the cannons correctly if i rotate the tank..

cheers,
jonathan</description>
		<content:encoded><![CDATA[<p>hi..i was wondering how do you position the bullets that&#8217;s coming out of the ship..i tried to create a tank that will fire cannons..but i can&#8217;t position the cannons correctly if i rotate the tank..</p>
<p>cheers,<br />
jonathan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

