<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Path Finding Code (Question)]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=963&amp;type=atom"/>
	<updated>2014-04-28T20:54:43Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=963</id>
		<entry>
			<title type="html"><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6736#p6736"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-04-28T20:54:43Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6736#p6736</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6735#p6735"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-04-28T20:24:11Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6735#p6735</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6734#p6734"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-04-28T19:57:44Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6734#p6734</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6733#p6733"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-04-28T18:56:08Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6733#p6733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Path Finding Code (Question)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6732#p6732"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-04-28T18:17:18Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6732#p6732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Path Finding Code (Question)]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6598#p6598"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-18T03:43:20Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6598#p6598</id>
		</entry>
</feed>
