<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Path Finding Code (Question)]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=963</link>
		<description><![CDATA[The most recent posts in Path Finding Code (Question).]]></description>
		<lastBuildDate>Mon, 28 Apr 2014 20:54:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6736#p6736</link>
			<description><![CDATA[<p>I think I was mistaken. It seems a path finding algorithm would find the &quot;shortest path&quot; from one location to another. This is not what I was looking for, but just a way to get an object to follow a path. Of course, now this makes me want to work on the path finding thing. Although I might just use my senses system for navigation.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 28 Apr 2014 20:54:43 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6736#p6736</guid>
		</item>
		<item>
			<title><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6735#p6735</link>
			<description><![CDATA[<p>I think this parametric equation will work:</p><p><a href="http://lima.osu.edu/people/iboyadzhiev/GeoGebra/Bezier/BezierParametric.html">http://lima.osu.edu/people/iboyadzhiev/ &#133; etric.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 28 Apr 2014 20:24:11 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6735#p6735</guid>
		</item>
		<item>
			<title><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6734#p6734</link>
			<description><![CDATA[<p>Here are are some functions I made that make an object follow a few types of curves, like sine curves, artangent curves, and even a circle as a parametric curve. </p><p>I think I would have to do some type of parametric curve fitting. </p><div class="codebox"><pre><code>--Outside the onSceneUpdate() function
u=0
ground = 2
center = vec3{0,0,ground}
x = u 
y = 0
drag = 5

--These functions called inside the onSceneUpdate() function

function Sinuside(object)
    u = u + 1
        
    x = u/drag 
    y = 9*math.sin(x)
        
    path = vec3(x,y,ground)

    setPosition(object,path)
end

function Cosinide(object)
    u = u + 1
        
    x = u/drag 
    y = 9*math.cos(x)
        
    path = vec3(x,y,ground)

    setPosition(object,path)
end

function Arctangic(object)
    u = u + 1
        
    x = u/drag 
    y = 9*math.atan(x)
        
    path = vec3(x,y,ground)

    setPosition(object,path)
end

function ArcSinusidal(object)
    u = u + 1
        
    x = u/drag 
    y = math.asin(x/60)
        
    path = vec3(x,y,ground)

    setPosition(object,path)
end

--x = r cos(t)    y = r sin(t)


function Circulate(object,radius,speed)
    u = u + speed
        
    x = speed * radius * math.cos(u)
    y = speed * radius * math.sin(u)
        
    path = vec3(x,y,ground)

    setPosition(object,path)
end

function Elipticate(object,width,height)
    u = u + .1
        
    x = width * math.cos(u)
    y = height * math.sin(u)
        
    path = vec3(x,y,ground)

    setPosition(object,path)
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 28 Apr 2014 19:57:44 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6734#p6734</guid>
		</item>
		<item>
			<title><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6733#p6733</link>
			<description><![CDATA[<p>Hi,<br />all this will be useful for an object to follow a specific smooth path.<br />you will still need a &quot;path finding&quot; algorithm, like Recast : <a href="https://github.com/memononen/recastnavigation">https://github.com/memononen/recastnavigation</a></p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 28 Apr 2014 18:56:08 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6733#p6733</guid>
		</item>
		<item>
			<title><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6732#p6732</link>
			<description><![CDATA[<p>Perhaps this will help me:<br /><a href="http://www.cs.bham.ac.uk/~slb/courses/Graphics/g88.html">http://www.cs.bham.ac.uk/~slb/courses/Graphics/g88.html</a></p><p>We will see</p><p>Or this:</p><p><a href="http://www.geometrictools.com/Documentation/MovingAlongCurveSpecifiedSpeed.pdf">http://www.geometrictools.com/Documenta &#133; dSpeed.pdf</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 28 Apr 2014 18:17:18 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6732#p6732</guid>
		</item>
		<item>
			<title><![CDATA[Path Finding Code (Question)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6598#p6598</link>
			<description><![CDATA[<p>Hi. So, I think you can use a bezier curve formula to get an object to follow a curve, so I found this code:</p><p><a href="http://giderosmobile.com/forum/discussion/461/bezier-curve-code/p1">http://giderosmobile.com/forum/discussi &#133; ve-code/p1</a></p><p>Think I could use this with Maratis if I make the points vec3 coordinates?</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Tue, 18 Mar 2014 03:43:20 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6598#p6598</guid>
		</item>
	</channel>
</rss>
