<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Get Collisions in C++?]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=410&amp;type=atom"/>
	<updated>2012-08-05T13:41:50Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=410</id>
		<entry>
			<title type="html"><![CDATA[Re: Get Collisions in C++?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2259#p2259"/>
			<content type="html"><![CDATA[<p>That&#039;s awesome! Thanks <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-08-05T13:41:50Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2259#p2259</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Get Collisions in C++?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2258#p2258"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-08-05T11:19:05Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2258#p2258</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Get Collisions in C++?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2253#p2253"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-08-04T18:21:38Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2253#p2253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Get Collisions in C++?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2251#p2251"/>
			<content type="html"><![CDATA[<p>No... there is no other way right now, I&#039;ll see if I can add it.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-08-04T18:20:05Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2251#p2251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Get Collisions in C++?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2250#p2250"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-08-04T18:14:40Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2250#p2250</id>
		</entry>
</feed>
