<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Collision test for getting object name]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=681&amp;type=atom"/>
	<updated>2013-06-07T11:11:46Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=681</id>
		<entry>
			<title type="html"><![CDATA[Re: Collision test for getting object name]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4241#p4241"/>
			<content type="html"><![CDATA[<p>Hi,</p><p>in lua you have to loop all objects yes,<br />or use rayHit :</p><p>point, object = rayHit(start, end)<br />name = getName(object)</p><p>We should add something better for that,<br />but you can do it in c++ with a plugin.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-06-07T11:11:46Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4241#p4241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Collision test for getting object name]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4239#p4239"/>
			<content type="html"><![CDATA[<p>So, just wanted to know if there is script for getting object (name) where another object is colliding.<br />I know that there is these functions:<br />isCollisionTest(object)<br />isCollisionBetween(object1, object2)<br />getNumCollisions(object) </p><p>but these dont give object name where something (for example bullet, part of explosion) has collided,<br />I need object name from collision..</p><p>I do have few ideas how to go around this, but they are kind of. bad<br />1) rayhit<br />2) loop all objects (object tables) </p><p>Is there anyway around this than these two?<br />is there coming some script function for maratis on this one? </p><p>Edit: missed some text &gt;.&lt;</p>]]></content>
			<author>
				<name><![CDATA[pleedian]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1409</uri>
			</author>
			<updated>2013-06-06T07:42:10Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4239#p4239</id>
		</entry>
</feed>
