<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - How to get the position of a clone?]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=1075&amp;type=atom"/>
	<updated>2014-10-02T04:40:31Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=1075</id>
		<entry>
			<title type="html"><![CDATA[Re: How to get the position of a clone?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7331#p7331"/>
			<content type="html"><![CDATA[<p>Oh I see... So I can&#039;t get the position of the object if I clone it during runtime.<br />That&#039;s interesting. Okay, lesson learned! Thanks alot Ant0n! That really helps <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" />! Thank you!</p>]]></content>
			<author>
				<name><![CDATA[Xone]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=289</uri>
			</author>
			<updated>2014-10-02T04:40:31Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7331#p7331</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get the position of a clone?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7330#p7330"/>
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Sphere = getObject(&quot;Sphere&quot;)
bullet = getClone(Sphere)

function onSceneUpdate()

    pos = getPosition(bullet)
    print(&quot;x=&quot;..pos[1]..&quot; y=&quot;..pos[2]..&quot; z=&quot;..pos[3]) --checking.
    translate(bullet, {0, 1, 0}, &quot;local&quot;)

end</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ant0n]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1562</uri>
			</author>
			<updated>2014-10-02T02:42:23Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7330#p7330</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to get the position of a clone?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7329#p7329"/>
			<content type="html"><![CDATA[<p>Hi, everyone!<br />I have a question. Is it possible to get the position of a clone object?<br />Let&#039;s say I have simple script like this:</p><div class="codebox"><pre><code>Sphere = getObject(&quot;Sphere&quot;)

function onSceneUpdate()

    bullet = getClone(Sphere)
    translate(bullet, {0, 1, 0}, &quot;local&quot;)

end</code></pre></div><p>Now, I can get the position of the Sphere using <strong>getPosition(Sphere)</strong>. But how can I get the position of the bullet? I tried using the same getPosition function, but it doesn&#039;t seem to work. Anyone can help?</p>]]></content>
			<author>
				<name><![CDATA[Xone]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=289</uri>
			</author>
			<updated>2014-10-01T15:15:28Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7329#p7329</id>
		</entry>
</feed>
