<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Rayhit point]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=541&amp;type=atom"/>
	<updated>2013-01-15T09:17:46Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=541</id>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3403#p3403"/>
			<content type="html"><![CDATA[<p>How convenient that I have just began a programming course in school then. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Pär]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1252</uri>
			</author>
			<updated>2013-01-15T09:17:46Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3403#p3403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3402#p3402"/>
			<content type="html"><![CDATA[<p>The code is corrected on svn, but I won&#039;t build it before the next version is ready,<br />you can build it yourself by installing a compiler (visual studio for windows, or gcc for unix), python and scons and by getting the code from svn.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-15T09:05:36Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3402#p3402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3390#p3390"/>
			<content type="html"><![CDATA[<p>Can you write me what point Apos, Bpos is compared to so that I can make a table and make a if true statement then hit lets say weapon_salesman?</p>]]></content>
			<author>
				<name><![CDATA[Pär]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1252</uri>
			</author>
			<updated>2013-01-14T18:57:55Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3390#p3390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3388#p3388"/>
			<content type="html"><![CDATA[<p>That&#039;s alright. Hope we get it soon. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Pär]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1252</uri>
			</author>
			<updated>2013-01-14T16:07:05Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3388#p3388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3383#p3383"/>
			<content type="html"><![CDATA[<p>Your script is good, the problem comes from Maratis, I just found a bug.<br />The 3rd argument with the object was not implemented correctly in the code... oups</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-13T23:53:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3383#p3383</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3382#p3382"/>
			<content type="html"><![CDATA[<p>Hm, the distance is dx 100 and it works when i&#039;m leaving out the salesman and aiming at something with physics?</p><p>And when I shoot the salesman is between a and c but it doesn&#039;t register. :s</p>]]></content>
			<author>
				<name><![CDATA[Pär]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1252</uri>
			</author>
			<updated>2013-01-13T22:35:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3382#p3382</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3379#p3379"/>
			<content type="html"><![CDATA[<p>if Cpos is far away enough it should be</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-13T21:32:13Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3379#p3379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3378#p3378"/>
			<content type="html"><![CDATA[<p>A = getObject(&quot;A&quot;)<br />C = getObject(&quot;C&quot;)</p><p>Apos = getPosition(A)<br />Cpos = getPosition(C)</p><p>and then this code:</p><br /><p>point = rayHit(Apos, Cpos, weapon_salesman)<br />&nbsp; &nbsp; <br />if onKeyDown(&quot;MOUSE_BUTTON1&quot;) and firing == 1 and derringer == true&nbsp; then<br />&nbsp; &nbsp; &nbsp; &nbsp; if point then<br />&nbsp; &nbsp; &nbsp; &nbsp; print(&quot;you hit weapon salesman&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; end<br />elseif onKeyDown(&quot;MOUSE_BUTTON1&quot;) and firing == 1 and shotgun == true&nbsp; then<br />&nbsp; &nbsp; &nbsp; &nbsp; if point then<br />&nbsp; &nbsp; &nbsp; &nbsp; print(&quot;you hit weapon salesman&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; end<br />end</p><br /><p>So is this code right?</p>]]></content>
			<author>
				<name><![CDATA[Pär]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1252</uri>
			</author>
			<updated>2013-01-13T20:45:44Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3378#p3378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3376#p3376"/>
			<content type="html"><![CDATA[<p>You are awesome. Thanks.</p>]]></content>
			<author>
				<name><![CDATA[Pär]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1252</uri>
			</author>
			<updated>2013-01-13T20:08:02Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3376#p3376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3375#p3375"/>
			<content type="html"><![CDATA[<p>You add the object you want to test as last parameter :</p><div class="codebox"><pre><code>point = rayHit(start, end, object)
if point then
    -- you hit &quot;object&quot;
end</code></pre></div>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-01-13T18:24:21Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3375#p3375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Rayhit point]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=3364#p3364"/>
			<content type="html"><![CDATA[<p>Hey, the point that you get from the rayhit-function. Can you get that somehow to match with different objects so you can make scripts depending on what it hits?</p>]]></content>
			<author>
				<name><![CDATA[Pär]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1252</uri>
			</author>
			<updated>2013-01-13T00:35:08Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=3364#p3364</id>
		</entry>
</feed>
