<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Get Collisions in C++?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=410</link>
		<description><![CDATA[The most recent posts in Get Collisions in C++?.]]></description>
		<lastBuildDate>Sun, 05 Aug 2012 13:41:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Get Collisions in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2259#p2259</link>
			<description><![CDATA[<p>That&#039;s awesome! Thanks <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Nistur)]]></author>
			<pubDate>Sun, 05 Aug 2012 13:41:50 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2259#p2259</guid>
		</item>
		<item>
			<title><![CDATA[Re: Get Collisions in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2258#p2258</link>
			<description><![CDATA[<p>Hi,</p><p>I added optional arguments to &quot;isObjectInCollision&quot; :</p><div class="codebox"><pre><code>static unsigned int collisionList[MAX_COLLISION]; // objectId list of other physics-objects in collision
int nbCollision = physics-&gt;isObjectInCollision(objectId, collisionList, MAX_COLLISION);</code></pre></div><p>I also added a function to set/get physics-object user pointer, which is the entity pointer in MEngine by default,<br />so you can get the entity pointer of the physics-objects by using :</p><div class="codebox"><pre><code>for(i=0; i&lt;MIN(nbCollision, MAX_COLLISION); i++)
{
    MOEntity * entity = (MOEntity *)physics-&gt;getObjectUserPointer(collisionList[i]);
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 05 Aug 2012 11:19:05 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2258#p2258</guid>
		</item>
		<item>
			<title><![CDATA[Re: Get Collisions in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2253#p2253</link>
			<description><![CDATA[<p>Thanks. I will leave this for now and work on something else <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Nistur)]]></author>
			<pubDate>Sat, 04 Aug 2012 18:21:38 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2253#p2253</guid>
		</item>
		<item>
			<title><![CDATA[Re: Get Collisions in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2251#p2251</link>
			<description><![CDATA[<p>No... there is no other way right now, I&#039;ll see if I can add it.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sat, 04 Aug 2012 18:20:05 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2251#p2251</guid>
		</item>
		<item>
			<title><![CDATA[Get Collisions in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2250#p2250</link>
			<description><![CDATA[<p>I&#039;m just trying to get some trigger stuff firing off, is there a way to get back a list of the currently collided objects?</p><p>I don&#039;t think there is, all I can see is isObjectInCollision, I think I need to loop through every object in the seen and then test collision... is this right? :S</p>]]></description>
			<author><![CDATA[dummy@example.com (Nistur)]]></author>
			<pubDate>Sat, 04 Aug 2012 18:14:40 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2250#p2250</guid>
		</item>
	</channel>
</rss>
