<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - [Plugin] LookAt for Entity]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=81&amp;type=atom"/>
	<updated>2011-06-21T16:36:25Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=81</id>
		<entry>
			<title type="html"><![CDATA[Re: [Plugin] LookAt for Entity]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=407#p407"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>anael wrote:</cite><blockquote><p>I&#039;ll try to send you that,<br />tell me by mail why you are not able to use visual anymore ?</p></blockquote></div><p>I sent the mail , do you received it ? (asking because i&#039;m using another mail client than usual, just checking)</p><p>Anyway my problem is still the same as here : <a href="http://forum.maratis3d.com/viewtopic.php?id=90">http://forum.maratis3d.com/viewtopic.php?id=90</a></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-06-21T16:36:25Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=407#p407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Plugin] LookAt for Entity]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=406#p406"/>
			<content type="html"><![CDATA[<p>&quot;addBehavior&quot; is indispensable to add a behavior to the engine.</p><p>The first argument is the name of the behavior (as it will appear in maratis interface).<br />The second argument is a filter, for example, if your behavior should be only applying to a Camera, you should set &quot;M_OBJECT3D_CAMERA&quot;. &quot;M_OBJECT3D&quot; means it&#039;s available for all 3d objects.<br />The third argument is a pointer to a function returning a new behavior.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-06-20T19:35:34Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=406#p406</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Plugin] LookAt for Entity]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=404#p404"/>
			<content type="html"><![CDATA[<p>In &quot;SimpleGamePlugin.cpp&quot;</p><p>add </p><div class="quotebox"><blockquote><p>behaviorManager-&gt;addBehavior(LookAt::getStaticName(), M_OBJECT3D, LookAt::getNew);</p></blockquote></div><p>is indispensable ? or just optional ?</p>]]></content>
			<author>
				<name><![CDATA[Alinor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=64</uri>
			</author>
			<updated>2011-06-20T16:30:45Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=404#p404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Plugin] LookAt for Entity]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=400#p400"/>
			<content type="html"><![CDATA[<p>I&#039;ll try to send you that,<br />tell me by mail why you are not able to use visual anymore ?</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-06-20T08:10:43Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=400#p400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Plugin] LookAt for Entity]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=395#p395"/>
			<content type="html"><![CDATA[<p>Can anyone compile this for me and send me the dll ? as i cant use visual studio for now i can&#039;t do it myself &gt;&lt;</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-06-19T17:56:31Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=395#p395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[Plugin] LookAt for Entity]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=311#p311"/>
			<content type="html"><![CDATA[<p><span class="postimg"><img src="http://dl.dropbox.com/u/19970067/fsd.gif" alt="PunBB bbcode test" /></span></p><p>We gonna take the &quot;How to create a game plugin&quot; as base.<br /><a href="http://www.maratis3d.org/?p=500">http://www.maratis3d.org/?p=500</a></p><p>In your visual c++ project, add these two files (they are in maratis source code folder) :</p><p>../Maratis/Common/MBehaviors/MBLookAt.cpp<br />../Maratis/Common/MBehaviors/MBLookAt.h</p><p>Then, in SimpleGamePlugin.cpp, add :</p><p>#inculde &quot;MBLookAt.h&quot;</p><p>And after the line <br />behaviorManager-&gt;addBehavior(MyBehavior::getStaticName(), M_OBJECT3D, MyBehavior::getNew);</p><p>Add<br />behaviorManager-&gt;addBehavior(MBLookAt::getStaticName(), M_OBJECT3D_ENTITY, MBLookAt::getNew);</p><p>Compile, Generate &amp; Enjoy</p><p><span class="postimg"><img src="http://img98.imageshack.us/img98/620/image182339.jpg" alt="PunBB bbcode test" /></span><br /><span class="postimg"><img src="http://img130.imageshack.us/img130/1825/image18230.jpg" alt="PunBB bbcode test" /></span></p><p>(Thanks anael for this <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" />)</p><p>Edit : i screwed up a step when i last edited, corrected now <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-04-26T17:11:54Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=311#p311</id>
		</entry>
</feed>
