<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Object Velocity]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=715</link>
		<description><![CDATA[The most recent posts in Object Velocity.]]></description>
		<lastBuildDate>Fri, 02 Aug 2013 12:57:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Object Velocity]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4506#p4506</link>
			<description><![CDATA[<p>Thank you so much for all the help you have given me. It&#039;s working very well now that I have made the adjustments you recommended, thank you again for taking the time and helping a beginner.</p>]]></description>
			<author><![CDATA[dummy@example.com (Riddikk)]]></author>
			<pubDate>Fri, 02 Aug 2013 12:57:04 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4506#p4506</guid>
		</item>
		<item>
			<title><![CDATA[Re: Object Velocity]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4505#p4505</link>
			<description><![CDATA[<p>first this two line need to be inside onSceneUpdate :<br />force = getCentralForce(Player)<br />speed = length(force)</p><p>but you are not using &quot;force&quot; or &quot;speed&quot; variables.</p><p>What is the problem with your script ? is it not compiling or just acting strange ?</p><p>I don&#039;t know what your script does exactly, but I can say that you should do &quot;thrust cap&quot; after &quot;raise thrust\lower&quot; and not before.</p><p>If you just want to add this velocity limitation we talked about, try to add this after &quot;--Movement RCS&quot; block :</p><div class="codebox"><pre><code>force = getCentralForce(Player)
speed = length(force)

if speed &gt; maxSpeed then
    addCentralForce(Player, force*(-0.1))
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 02 Aug 2013 12:40:06 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4505#p4505</guid>
		</item>
		<item>
			<title><![CDATA[Re: Object Velocity]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4504#p4504</link>
			<description><![CDATA[<p>Thank you for the help I am sure this works .However I am too big of an idiot to implement it properly, so I did not manage to make it work .I am sorry to waste your time and I&#039;m sure you have better things to do but can you please take a look on my script? <a href="http://db.tt/uiNNfUcQ">http://db.tt/uiNNfUcQ</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Riddikk)]]></author>
			<pubDate>Fri, 02 Aug 2013 11:43:25 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4504#p4504</guid>
		</item>
		<item>
			<title><![CDATA[Re: Object Velocity]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4503#p4503</link>
			<description><![CDATA[<p>I think you can do something like that in lua, I&#039;m not sure how precise it will be but it should work.</p><p>you can try to normalize the force if the speed reach some amount :</p><div class="codebox"><pre><code>force = getCentralForce(object)
speed = length(force)

if speed &gt; maxSpeed then
    force = normalize(force)*maxSpeed
    clearForces(object)
    addCentralForce(object, force)
    -- you might need to do the same with the torque if you want to limit rotation speed too
end</code></pre></div><p>or by applying an inverse force if you want it to be more smooth :</p><div class="codebox"><pre><code>force = getCentralForce(object)
speed = length(force)

if speed &gt; maxSpeed then
    addCentralForce(object, force*(-0.01))
end</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 02 Aug 2013 09:50:21 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4503#p4503</guid>
		</item>
		<item>
			<title><![CDATA[Re: Object Velocity]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4502#p4502</link>
			<description><![CDATA[<p>Yes the object should behave normally with no damping or any kind of resistance but could not go faster than a certain velocity. Is this possible?</p>]]></description>
			<author><![CDATA[dummy@example.com (Riddikk)]]></author>
			<pubDate>Fri, 02 Aug 2013 07:48:20 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4502#p4502</guid>
		</item>
		<item>
			<title><![CDATA[Re: Object Velocity]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4501#p4501</link>
			<description><![CDATA[<p>Hi,</p><p>do you mean like the object should behave normally with no damping but could not go faster than a certain velocity ?<br />or do you mean the object will be affected by a sort of resistance or friction ?</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 02 Aug 2013 00:14:32 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4501#p4501</guid>
		</item>
		<item>
			<title><![CDATA[Object Velocity]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4499#p4499</link>
			<description><![CDATA[<p>Hello, <br />I am sorry to be a bother but I have a small question. Is there a way to limit an objects velocity and not use the damping?</p>]]></description>
			<author><![CDATA[dummy@example.com (Riddikk)]]></author>
			<pubDate>Fri, 02 Aug 2013 00:04:52 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4499#p4499</guid>
		</item>
	</channel>
</rss>
