<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Better way to do Jumping.]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=1028&amp;type=atom"/>
	<updated>2014-07-19T12:43:44Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=1028</id>
		<entry>
			<title type="html"><![CDATA[Better way to do Jumping.]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7008#p7008"/>
			<content type="html"><![CDATA[<p>Just created an example demonstrating a better way to do jumping than the method used for the sponza level. Instead of using a dummy object that is connected to the player to detect collision with the floor, I used a dummy object as a floor, and detect collision of the object with it. I made it a ghost also. </p><p>Download (9mb):<br /><a href="https://sites.google.com/site/maratisfiles/files/Puller.zip">https://sites.google.com/site/maratisfi &#133; Puller.zip</a></p><p>A sample of the script:</p><div class="codebox"><pre><code>if onKeyDown(&quot;ENTER&quot;) and isCollisionBetween(box,ground) then
        addCentralForce(box,{0,0,force},&quot;local&quot;)
    end</code></pre></div><p>The method I use to play a sound once is just a quick and dirty (very dirty) method.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-07-19T12:43:44Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7008#p7008</id>
		</entry>
</feed>
