<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - count the collisions number of an entity (c++)]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=239&amp;type=atom"/>
	<updated>2011-12-04T11:35:17Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=239</id>
		<entry>
			<title type="html"><![CDATA[Re: count the collisions number of an entity (c++)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=912#p912"/>
			<content type="html"><![CDATA[<p>you&#039;re welcome <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-12-04T11:35:17Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=912#p912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: count the collisions number of an entity (c++)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=911#p911"/>
			<content type="html"><![CDATA[<p>thanks Anael for these precisions <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Alinor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=64</uri>
			</author>
			<updated>2011-12-04T11:23:52Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=911#p911</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: count the collisions number of an entity (c++)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=910#p910"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-12-03T23:28:34Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=910#p910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[count the collisions number of an entity (c++)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=909#p909"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alinor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=64</uri>
			</author>
			<updated>2011-12-03T19:38:46Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=909#p909</id>
		</entry>
</feed>
