<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - count the collisions number of an entity (c++)]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=239</link>
		<description><![CDATA[The most recent posts in count the collisions number of an entity (c++).]]></description>
		<lastBuildDate>Sun, 04 Dec 2011 11:35:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: count the collisions number of an entity (c++)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=912#p912</link>
			<description><![CDATA[<p>you&#039;re welcome <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 04 Dec 2011 11:35:17 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=912#p912</guid>
		</item>
		<item>
			<title><![CDATA[Re: count the collisions number of an entity (c++)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=911#p911</link>
			<description><![CDATA[<p>thanks Anael for these precisions <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Alinor)]]></author>
			<pubDate>Sun, 04 Dec 2011 11:23:52 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=911#p911</guid>
		</item>
		<item>
			<title><![CDATA[Re: count the collisions number of an entity (c++)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=910#p910</link>
			<description><![CDATA[<p>Hi,<br />the id is not the object id but the collision id,<br />you can get it using &quot;entity-&gt;getPhysicsProperties();&quot; (it is NULL if the object doesn&#039;t have physics enabled)</p><p>MPhysicsProperties * phyProps = ent-&gt;getPhysicsProperties();<br />if(phyProps)<br />&nbsp; &nbsp; nbColl = physCont-&gt;isObjectInCollision(phyProps-&gt;getCollisionObjectId());</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sat, 03 Dec 2011 23:28:34 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=910#p910</guid>
		</item>
		<item>
			<title><![CDATA[count the collisions number of an entity (c++)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=909#p909</link>
			<description><![CDATA[<p>Hi, i try to count the number of meshs which are in collision with an ghost entity, but maratis crash ... this is the code I use :</p><div class="quotebox"><blockquote><p>MEngine * engine = MEngine::getInstance();<br />&nbsp; &nbsp; &nbsp; &nbsp; MyGame * game = (MyGame*) engine-&gt;getGame();<br />&nbsp; &nbsp; &nbsp; &nbsp; MLevel* lvl = engine-&gt;getLevel();<br />&nbsp; &nbsp; &nbsp; &nbsp; MScene* scene = lvl-&gt;getCurrentScene();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; unsigned int Id;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int nbColl;<br />&nbsp; &nbsp; &nbsp; &nbsp; MOEntity* ent= scene-&gt;getEntityByName(&quot;myEntity&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; scene-&gt;getObjectIndex(ent-&gt;getName(), &amp;Id);<br />&nbsp; &nbsp; &nbsp; &nbsp; MPhysicsContext * physCont = engine-&gt;getPhysicsContext();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; nbColl = physCont-&gt;isObjectInCollision (Id);<br />// here maratis crash</p></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (Alinor)]]></author>
			<pubDate>Sat, 03 Dec 2011 19:38:46 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=909#p909</guid>
		</item>
	</channel>
</rss>
