<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AI Follow Component</title>
	<atom:link href="http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arongranberg.com</link>
	<description>Updating the website theme...</description>
	<lastBuildDate>Thu, 09 Sep 2010 07:34:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Admin</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-1110</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Sun, 15 Aug 2010 08:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-1110</guid>
		<description>Hi Kevin

&lt;em&gt;Sorry for answering late, I have been on holiday without internet.&lt;/em&gt;

The SetSpeed is just a function which sends the speed at which the character is moving.
If I remember correctly each SendMessage (&quot;SetSpeed&quot;,[something]); call is inside an IF statement, something like:
&lt;code&gt;if (animator != null) {
   SendMessage....
}&lt;/code&gt;

Remove all those IF statements in the AIFollow code to make it always send messages.
Then you add a function called &quot;SetSpeed (speed : float)&quot; to your animation script, and that&#039;s it.

Hope it helps.</description>
		<content:encoded><![CDATA[<p>Hi Kevin</p>
<p><em>Sorry for answering late, I have been on holiday without internet.</em></p>
<p>The SetSpeed is just a function which sends the speed at which the character is moving.<br />
If I remember correctly each SendMessage (&#8220;SetSpeed&#8221;,[something]); call is inside an IF statement, something like:<br />
<code>if (animator != null) {<br />
   SendMessage....<br />
}</code></p>
<p>Remove all those IF statements in the AIFollow code to make it always send messages.<br />
Then you add a function called &#8220;SetSpeed (speed : float)&#8221; to your animation script, and that&#8217;s it.</p>
<p>Hope it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-1043</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 05 Aug 2010 15:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-1043</guid>
		<description>I&#039;m loving your system, but I am hoping you can help with a simple problem. I want to run my character animation using Javascript as I do not know C#. Can you tell me how to access the speed information (SetSpeed I think) from AIFollow to trigger animation in a JS script?

thanks

Kevin</description>
		<content:encoded><![CDATA[<p>I&#8217;m loving your system, but I am hoping you can help with a simple problem. I want to run my character animation using Javascript as I do not know C#. Can you tell me how to access the speed information (SetSpeed I think) from AIFollow to trigger animation in a JS script?</p>
<p>thanks</p>
<p>Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-972</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Thu, 22 Jul 2010 14:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-972</guid>
		<description>Hi Raihje

Ok, you seem to have found the solutions to most of the problems, I have been without internet for a week so I haven&#039;t been able to answer.

From what I can understand, your scene is laid out flat and I guess the grid offset in the A* settings is set to 0 on the Y axis.
Try to change the Y offset to -0.1 (just so the grid&#039;s bound&#039;s bottom isn&#039;t exactly in line with the ground), it&#039;s probably floating point errors which causes the problem (just because your goblin seems to be placed on Y position 0 it could be -0.0001 which would cause the IsPositonInsideBounds check to fail).

PS: The thing with the goblins getting stuck at corners, try checking the toggle Don&#039;t Cut Corners in the A* Settings, hopefully it will help.

Hope it helps,
Aron</description>
		<content:encoded><![CDATA[<p>Hi Raihje</p>
<p>Ok, you seem to have found the solutions to most of the problems, I have been without internet for a week so I haven&#8217;t been able to answer.</p>
<p>From what I can understand, your scene is laid out flat and I guess the grid offset in the A* settings is set to 0 on the Y axis.<br />
Try to change the Y offset to -0.1 (just so the grid&#8217;s bound&#8217;s bottom isn&#8217;t exactly in line with the ground), it&#8217;s probably floating point errors which causes the problem (just because your goblin seems to be placed on Y position 0 it could be -0.0001 which would cause the IsPositonInsideBounds check to fail).</p>
<p>PS: The thing with the goblins getting stuck at corners, try checking the toggle Don&#8217;t Cut Corners in the A* Settings, hopefully it will help.</p>
<p>Hope it helps,<br />
Aron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raihje</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-965</link>
		<dc:creator>Raihje</dc:creator>
		<pubDate>Wed, 21 Jul 2010 19:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-965</guid>
		<description>Ok I fixed everything except, unless your reallllly careful, you get some &quot;Start is not
Within Grid&quot; and he&#039;s in plain sight of a grid. Like he couldn&#039;t not stray from the grid the
way the level is designed. It&#039;s just weird. I need to solve it because the cube sits there
stupidly, while I walk all around. In the Debug it looks like he&#039;s just frozen with a rapid
fire blue line (raycast?) in front of him. Friggen annoying. So close to having everything
perfect, and something small like this tears the whole game apart. Goblin friends can&#039;t
follow you, if 1 cube can&#039;t even follow you.</description>
		<content:encoded><![CDATA[<p>Ok I fixed everything except, unless your reallllly careful, you get some &#8220;Start is not<br />
Within Grid&#8221; and he&#8217;s in plain sight of a grid. Like he couldn&#8217;t not stray from the grid the<br />
way the level is designed. It&#8217;s just weird. I need to solve it because the cube sits there<br />
stupidly, while I walk all around. In the Debug it looks like he&#8217;s just frozen with a rapid<br />
fire blue line (raycast?) in front of him. Friggen annoying. So close to having everything<br />
perfect, and something small like this tears the whole game apart. Goblin friends can&#8217;t<br />
follow you, if 1 cube can&#8217;t even follow you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raihje</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-961</link>
		<dc:creator>Raihje</dc:creator>
		<pubDate>Tue, 20 Jul 2010 15:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-961</guid>
		<description>Ok all the errors are gone :P Awesome, managed to get my own little demo level going!
I only have one last small issue. If you have 1 one. make him go to one side, then ask him
to go to the other side, he stands there with a blue line going right to the other side of
the wall. I tried cutting in half the grid radius thing, and the height, didn&#039;t do anything.
is there any way I can reduce his.. LOS to only see a square in front of him?
He can go around corners pretty good for the most part, the blue line kinda has to drag
him a bit sometimes but that&#039;s fine as far as I&#039;m concerned. But I don&#039;t want the
character to double back along a wall and have the AI get stuck because he&#039;s only on
the other side of a wall - still unreachable though.</description>
		<content:encoded><![CDATA[<p>Ok all the errors are gone <img src='http://www.arongranberg.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Awesome, managed to get my own little demo level going!<br />
I only have one last small issue. If you have 1 one. make him go to one side, then ask him<br />
to go to the other side, he stands there with a blue line going right to the other side of<br />
the wall. I tried cutting in half the grid radius thing, and the height, didn&#8217;t do anything.<br />
is there any way I can reduce his.. LOS to only see a square in front of him?<br />
He can go around corners pretty good for the most part, the blue line kinda has to drag<br />
him a bit sometimes but that&#8217;s fine as far as I&#8217;m concerned. But I don&#8217;t want the<br />
character to double back along a wall and have the AI get stuck because he&#8217;s only on<br />
the other side of a wall &#8211; still unreachable though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raihje</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-960</link>
		<dc:creator>Raihje</dc:creator>
		<pubDate>Tue, 20 Jul 2010 13:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-960</guid>
		<description>Ook, I managed to bring all the errors down to one - it says StarPath() doesn&#039;t exist.
That seems to be the only issue now. Realized &quot;Animation&quot; and stuff was in the other
folder lol - Fail..

Alright. So, any pointers or help, would be dually nice..</description>
		<content:encoded><![CDATA[<p>Ook, I managed to bring all the errors down to one &#8211; it says StarPath() doesn&#8217;t exist.<br />
That seems to be the only issue now. Realized &#8220;Animation&#8221; and stuff was in the other<br />
folder lol &#8211; Fail..</p>
<p>Alright. So, any pointers or help, would be dually nice..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raihje</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-954</link>
		<dc:creator>Raihje</dc:creator>
		<pubDate>Mon, 19 Jul 2010 17:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-954</guid>
		<description>Oh side note - I deleted any &quot;animator&quot; and &quot;AIAnimation&quot; strings anywhere (including
whatever had that inside it, so the Stop() (if whatever animation etc..) And then it
gave me a parsing error, but that was the only error and it pointed to a line that
(imo) shouldn&#039;t be an error. 

Assets/Standard Assets/Pathfinding/AIFollow.cs(131,29): error CS8025: Parsing error the line just said
		direction.y = 0;
So you can see my predicament? I have 4 days tops to get this working before my
team throws me in a guillotine lol. I hate unity, but it&#039;s what we have to use for this
job so for now I&#039;m gritting for the 2,000 bucks I&#039;m making this month :S

Next time I have to choose a job description for a game, I&#039;m choosing artist or
Designer, programmers have it too hard with unity, being forced to learn something in
like... a week flat is a pain :P I think I&#039;d be a decent designer, I know a little about
everything, not enough to really specialize &gt;-&gt;</description>
		<content:encoded><![CDATA[<p>Oh side note &#8211; I deleted any &#8220;animator&#8221; and &#8220;AIAnimation&#8221; strings anywhere (including<br />
whatever had that inside it, so the Stop() (if whatever animation etc..) And then it<br />
gave me a parsing error, but that was the only error and it pointed to a line that<br />
(imo) shouldn&#8217;t be an error. </p>
<p>Assets/Standard Assets/Pathfinding/AIFollow.cs(131,29): error CS8025: Parsing error the line just said<br />
		direction.y = 0;<br />
So you can see my predicament? I have 4 days tops to get this working before my<br />
team throws me in a guillotine lol. I hate unity, but it&#8217;s what we have to use for this<br />
job so for now I&#8217;m gritting for the 2,000 bucks I&#8217;m making this month :S</p>
<p>Next time I have to choose a job description for a game, I&#8217;m choosing artist or<br />
Designer, programmers have it too hard with unity, being forced to learn something in<br />
like&#8230; a week flat is a pain <img src='http://www.arongranberg.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  I think I&#8217;d be a decent designer, I know a little about<br />
everything, not enough to really specialize &gt;-&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raihje</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-953</link>
		<dc:creator>Raihje</dc:creator>
		<pubDate>Mon, 19 Jul 2010 17:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-953</guid>
		<description>Ok, so everything in the demo worked fine, but I&#039;m trying to make a maze, and you go
around and &quot;rescue goblins&quot; (your a goblin) avoiding the dragonkin that (until a fix a
bug) will cut you in half with one (rapid-fire) fell sweep of his big sword. But, I put the
AIFollow.cs script (I use JS, not cs, so I have no idea what it&#039;s doing really &gt;-&gt;) but it
says 

Assets/Standard Assets/Pathfinding/AIFollow.cs(20,17): error CS0246: The type or namespace name `AIAnimation&#039; could not be found. Are you missing a using directive or an assembly reference?

How can I fix this? And any ideas on how I can make sure the Goblins can follow the
player around the maze efficiently? (Also, traps and rotating walls, and all sorts of
stuff will be in there too, so Pathfinding might be a challenge for the average goblin xD)</description>
		<content:encoded><![CDATA[<p>Ok, so everything in the demo worked fine, but I&#8217;m trying to make a maze, and you go<br />
around and &#8220;rescue goblins&#8221; (your a goblin) avoiding the dragonkin that (until a fix a<br />
bug) will cut you in half with one (rapid-fire) fell sweep of his big sword. But, I put the<br />
AIFollow.cs script (I use JS, not cs, so I have no idea what it&#8217;s doing really &gt;-&gt;) but it<br />
says </p>
<p>Assets/Standard Assets/Pathfinding/AIFollow.cs(20,17): error CS0246: The type or namespace name `AIAnimation&#8217; could not be found. Are you missing a using directive or an assembly reference?</p>
<p>How can I fix this? And any ideas on how I can make sure the Goblins can follow the<br />
player around the maze efficiently? (Also, traps and rotating walls, and all sorts of<br />
stuff will be in there too, so Pathfinding might be a challenge for the average goblin xD)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Admin</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-608</link>
		<dc:creator>Admin</dc:creator>
		<pubDate>Wed, 19 May 2010 13:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-608</guid>
		<description>See the answer to this question in the Get Started With A* - Part 3 comments - Comment 28.</description>
		<content:encoded><![CDATA[<p>See the answer to this question in the Get Started With A* &#8211; Part 3 comments &#8211; Comment 28.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiwan</title>
		<link>http://www.arongranberg.com/unity/a-pathfinding/docs/api/aifollow/comment-page-1/#comment-601</link>
		<dc:creator>Jiwan</dc:creator>
		<pubDate>Mon, 17 May 2010 04:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.arongranberg.com/?page_id=515#comment-601</guid>
		<description>Is there any function for this script that stops the character if it meets the obstacle on the way?</description>
		<content:encoded><![CDATA[<p>Is there any function for this script that stops the character if it meets the obstacle on the way?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
