<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - help with vector please]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=708&amp;type=atom"/>
	<updated>2013-07-20T03:13:01Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=708</id>
		<entry>
			<title type="html"><![CDATA[Re: help with vector please]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4429#p4429"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[penguinroad]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2251</uri>
			</author>
			<updated>2013-07-20T03:13:01Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4429#p4429</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: help with vector please]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4428#p4428"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-07-19T16:51:51Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4428#p4428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[help with vector please]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4426#p4426"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[penguinroad]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2251</uri>
			</author>
			<updated>2013-07-19T06:28:41Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4426#p4426</id>
		</entry>
</feed>
