<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - setCurrentBehavior]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=547</link>
		<description><![CDATA[The most recent posts in setCurrentBehavior.]]></description>
		<lastBuildDate>Wed, 16 Jan 2013 09:57:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3448#p3448</link>
			<description><![CDATA[<p>yes setBehaviorVariable and getBehaviorVariable are only there to access a behavior variables that is already there.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Wed, 16 Jan 2013 09:57:36 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3448#p3448</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3437#p3437</link>
			<description><![CDATA[<p>Thank you Anael, I wasn&#039;t aware that I needed to set my model to lookAt already IN the editor, once again thanks. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Pär)]]></author>
			<pubDate>Tue, 15 Jan 2013 22:37:18 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3437#p3437</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3436#p3436</link>
			<description><![CDATA[<p>Ahhh I see I was wondering why when I was trying to do a billboarding deal with my plants and grass it got all weird.</p>]]></description>
			<author><![CDATA[dummy@example.com (zester)]]></author>
			<pubDate>Tue, 15 Jan 2013 22:36:29 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3436#p3436</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3435#p3435</link>
			<description><![CDATA[<p>Did you add a LookAt behavior on your trylare model in the editor ?<br />and is it the first behavior in the list (0 in the function access the first behavior of the object)</p><p>if trylare having a parent it is linked to ? a parent link might conflict with the look-at.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 15 Jan 2013 22:35:12 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3435#p3435</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3433#p3433</link>
			<description><![CDATA[<p>Ok, my playername is player in the editor. And my sensor has a collisionshape in ghost mode.</p><p>Oh, there is collision detected. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I write: setBehaviorVariable(trylare, 0, &quot;target&quot;, &quot;player&quot;) setBehaviorVariable(trylare_model, 0, &quot;target&quot;, &quot;player&quot;) in function onSceneUpdate() without any if statements but nothing happens, what&#039;s wrong?</p>]]></description>
			<author><![CDATA[dummy@example.com (Pär)]]></author>
			<pubDate>Tue, 15 Jan 2013 22:27:48 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3433#p3433</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3430#p3430</link>
			<description><![CDATA[<p>Vegas : it&#039;s because the look at is using the Z axis (the one originally used by camera),<br />but to not have to re-export the character, use an invisible box and link your character to it.</p><p>Par : I&#039;m not sure I understand what you mean.<br />Check first if the collision is detected, then check if your player name is &quot;player&quot; in the editor,<br />and that sensor is having a collision shape (in ghost mode I guess).</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 15 Jan 2013 22:21:38 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3430#p3430</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3422#p3422</link>
			<description><![CDATA[<p>I understand. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> Well, there is no problem if I set my player to lookAt in maratis and then execute it. But if I try to write it out in the console then nothing happens. And my robot is moving already, so maybe a bug?</p><p>Thanks for the reply.</p>]]></description>
			<author><![CDATA[dummy@example.com (Pär)]]></author>
			<pubDate>Tue, 15 Jan 2013 21:39:06 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3422#p3422</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3421#p3421</link>
			<description><![CDATA[<p>To make characters look at another entity with the LookAt behavior (like the zombie in <a href="http://forum.maratis3d.com/viewtopic.php?id=174">This example</a>) personally i have to export the models in that position (or something similiar) :</p><p><span class="postimg"><img src="https://dl.dropbox.com/u/19970067/Questions/Mineworker.png" alt="PunBB bbcode test" /></span></p><p>Then if i need to move them ; addCentralForce(object, {0, 0, -1}, &quot;local&quot;) </p><p>That&#039;s a bit weird but it works =p</p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Tue, 15 Jan 2013 21:35:10 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3421#p3421</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3409#p3409</link>
			<description><![CDATA[<p>Hm, I wrote it out just:</p><p> setBehaviorVariable(robot, 0, &quot;target&quot;, &quot;player&quot;)</p><p>In the console but nothing happened.</p>]]></description>
			<author><![CDATA[dummy@example.com (Pär)]]></author>
			<pubDate>Tue, 15 Jan 2013 17:59:05 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3409#p3409</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3401#p3401</link>
			<description><![CDATA[<p>The setBehaviorVariable code is right, maybe the problem comes from the collision detection ?</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Tue, 15 Jan 2013 09:02:00 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3401#p3401</guid>
		</item>
		<item>
			<title><![CDATA[Re: setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3395#p3395</link>
			<description><![CDATA[<p>I think that You has to disable the behaviour when the person goes away from the sensor.</p><p>if isCollisionBetween(player,sensor) then<br />&nbsp; &nbsp; &nbsp; --code to enable behaviour<br />else<br />&nbsp; &nbsp; &nbsp; --code to disable behaviour<br />end</p>]]></description>
			<author><![CDATA[dummy@example.com (SadWolf)]]></author>
			<pubDate>Mon, 14 Jan 2013 23:06:28 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3395#p3395</guid>
		</item>
		<item>
			<title><![CDATA[setCurrentBehavior]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3392#p3392</link>
			<description><![CDATA[<p>Hello, I would want to question about setCurrentBehavior.</p><p>When I set my robot to look at the person when he is in range of the robots sensor (a cylinder) it doesn&#039;t look that way.</p><p>This is my script:</p><p>if isCollisionBetween(player,sensor) then</p><p>&nbsp; &nbsp; &nbsp; &nbsp; setBehaviorVariable(robot, 0, &quot;target&quot;, &quot;player&quot;)</p><p>end</p>]]></description>
			<author><![CDATA[dummy@example.com (Pär)]]></author>
			<pubDate>Mon, 14 Jan 2013 20:54:05 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3392#p3392</guid>
		</item>
	</channel>
</rss>
