<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - help with vector please]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=708</link>
		<description><![CDATA[The most recent posts in help with vector please.]]></description>
		<lastBuildDate>Sat, 20 Jul 2013 03:13:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: help with vector please]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4429#p4429</link>
			<description><![CDATA[<p>Yes, this is exactly what I need. Thanks anael <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (penguinroad)]]></author>
			<pubDate>Sat, 20 Jul 2013 03:13:01 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4429#p4429</guid>
		</item>
		<item>
			<title><![CDATA[Re: help with vector please]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4428#p4428</link>
			<description><![CDATA[<p>it depends also how you want to push the chair,<br />do you want to push the chair in front of you (meaning the fps view) ?</p><p>if yes, you can use the same ray you used with &quot;rayHit(V1, V2)&quot; :</p><p>force = 10 --set the force you want<br />someVector = normalize(V2 - V1)*force</p><p>addCentralForce(Chair, someVector) -- call this only one time</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 19 Jul 2013 16:51:51 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4428#p4428</guid>
		</item>
		<item>
			<title><![CDATA[help with vector please]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=4426#p4426</link>
			<description><![CDATA[<p>using sponza as base, I manage to create basic FPS. Now my player can walk, run, sprint, jump, and when I click mouse it returns name of object in front of him. I can also load a text file, read it&#039;s content and clone an object in a certain location based on content of the file. Pretty good for 3 days I guess <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>but then my math fails me. Simply put:</p><p>I want to apply force to a chair, just like pushing or kicking the chair, when I click my mouse. I already can detect the chair using rayhit, what&#039;s left is applying force. It should be something like this if I&#039;m not mistaken</p><p>addCentralForce(Chair, someVector)</p><p>my problem is determining this &#039;someVector&#039;. How do I get right vector so I can apply the force at correct direction?</p><p>Thanks</p><p>[Edit]<br />I figure it must have some connection with rotation of Head/Camera. I can get that if that value. What I don&#039;t get is how to use that rotation value to figure our direction of force, because when I use that value, it simply doesn&#039;t work the way it should be</p>]]></description>
			<author><![CDATA[dummy@example.com (penguinroad)]]></author>
			<pubDate>Fri, 19 Jul 2013 06:28:41 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=4426#p4426</guid>
		</item>
	</channel>
</rss>
