<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Levitate (physics)]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=994</link>
		<description><![CDATA[The most recent posts in Levitate (physics).]]></description>
		<lastBuildDate>Wed, 21 May 2014 08:40:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Levitate (physics)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6803#p6803</link>
			<description><![CDATA[<div class="quotebox"><cite>anael wrote:</cite><blockquote><p>you can apply the inverse of the gravity multiplied by the mass of the object :</p><div class="codebox"><pre><code>-- scene update
function onSceneUpdate()

    addCentralForce(Object, -getGravity()*getMass(Object))

end</code></pre></div><p>and you can additionally do your regular movement :</p><div class="codebox"><pre><code>-- scene update
function onSceneUpdate()

    addCentralForce(Object, -getGravity()*getMass(Object))
    addCentralForce(Object, vec3(0.1, 0.0, 0.0)) -- additional move toward X

end</code></pre></div></blockquote></div><p>Thank you for your advise.<br />I tried it, but up/down force is not elimated fully by “inverse of gravity”. It is necessary additional correcting controll for the object.&nbsp; But I think it wouldn’t be a big problem.:).</p>]]></description>
			<author><![CDATA[dummy@example.com (Tibi)]]></author>
			<pubDate>Wed, 21 May 2014 08:40:02 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6803#p6803</guid>
		</item>
		<item>
			<title><![CDATA[Re: Levitate (physics)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6802#p6802</link>
			<description><![CDATA[<div class="quotebox"><cite>Tutorial Doctor wrote:</cite><blockquote><p>I actually did this in my artificial intelligence level accidentally. I parented a cone to the object and made the cone a ghost object with physics. </p><p>Now you can check collisions with the cone, and add a central force to the object when something collides with e cone. </p><p>If the cone is rotated towards the ground, and it is long enough, then it will act as a ground detection device, and the object will get a jolt every time the cone touches the ground.</p></blockquote></div><br /><p>Thanks and it&#039;s good idea!<br />But actually my &quot;game concept&quot; is a kind of “helicopter game” where the player have to avoid the ground obstacles. So the player task to control the heli., not necessary automatic controlling.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tibi)]]></author>
			<pubDate>Wed, 21 May 2014 08:01:42 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6802#p6802</guid>
		</item>
		<item>
			<title><![CDATA[Re: Levitate (physics)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6795#p6795</link>
			<description><![CDATA[<p>you can apply the inverse of the gravity multiplied by the mass of the object :</p><div class="codebox"><pre><code>-- scene update
function onSceneUpdate()

    addCentralForce(Object, -getGravity()*getMass(Object))

end</code></pre></div><p>and you can additionally do your regular movement :</p><div class="codebox"><pre><code>-- scene update
function onSceneUpdate()

    addCentralForce(Object, -getGravity()*getMass(Object))
    addCentralForce(Object, vec3(0.1, 0.0, 0.0)) -- additional move toward X

end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 19 May 2014 16:05:18 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6795#p6795</guid>
		</item>
		<item>
			<title><![CDATA[Re: Levitate (physics)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6792#p6792</link>
			<description><![CDATA[<p>I actually did this in my artificial intelligence level accidentally. I parented a cone to the object and made the cone a ghost object with physics. </p><p>Now you can check collisions with the cone, and add a central force to the object when something collides with e cone. </p><p>If the cone is rotated towards the ground, and it is long enough, then it will act as a ground detection device, and the object will get a jolt every time the cone touches the ground.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Mon, 19 May 2014 13:52:50 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6792#p6792</guid>
		</item>
		<item>
			<title><![CDATA[Re: Levitate (physics)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6791#p6791</link>
			<description><![CDATA[<p>I am really sorry of about missing lines of my question. So my question ending: <br />&quot;I raise up/down this object (helicopter) by&nbsp; adding central force, but I can&#039;t&nbsp; helicopter maintain in one place of the air.&quot;. </p><p>If I disable physics, how it will interaction with the word?</p><br /><p>Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (Tibi)]]></author>
			<pubDate>Mon, 19 May 2014 13:08:20 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6791#p6791</guid>
		</item>
		<item>
			<title><![CDATA[Re: Levitate (physics)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6790#p6790</link>
			<description><![CDATA[<p>you can make a ray(from camera) to check if you look at the object, and check distance, then disable physics and change it&#039;s position (using lerp may be)</p>]]></description>
			<author><![CDATA[dummy@example.com (hog)]]></author>
			<pubDate>Mon, 19 May 2014 12:28:05 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6790#p6790</guid>
		</item>
		<item>
			<title><![CDATA[Levitate (physics)]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6787#p6787</link>
			<description><![CDATA[<p>I need some advise. My question is how can I levitate an object in the air . I raise up/down by using</p>]]></description>
			<author><![CDATA[dummy@example.com (Tibi)]]></author>
			<pubDate>Mon, 19 May 2014 11:27:36 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6787#p6787</guid>
		</item>
	</channel>
</rss>
