<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - How to parent object to bone in C++?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=1273</link>
		<description><![CDATA[The most recent posts in How to parent object to bone in C++?.]]></description>
		<lastBuildDate>Wed, 24 May 2017 07:52:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to parent object to bone in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=8149#p8149</link>
			<description><![CDATA[<p>I have solved it, adding this code in the update function:</p><div class="codebox"><pre><code>MOEntity * weapon = scene-&gt;getEntityByName(&quot;star&quot;);
MOEntity * keyla = scene-&gt;getEntityByName(&quot;ky&quot;); 
MOBone * bone = keyla-&gt;getMesh()-&gt;getArmature()-&gt;getBoneByName(&quot;IK.hand.R&quot;);
        
weapon-&gt;setPosition(  keyla-&gt;getTransformedVector( bone-&gt;getTransformedPosition() ) );
weapon-&gt;setEulerRotation(   bone-&gt;getEulerRotation() + keyla-&gt;getEulerRotation() );</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ArielRiv)]]></author>
			<pubDate>Wed, 24 May 2017 07:52:11 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=8149#p8149</guid>
		</item>
		<item>
			<title><![CDATA[How to parent object to bone in C++?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=8148#p8148</link>
			<description><![CDATA[<p>I have tried in several ways to link an object to a bone (for example, to match a weapon to the hand of a character) but I have had difficulties with the transformations and I have not been able to solve them</p>]]></description>
			<author><![CDATA[dummy@example.com (ArielRiv)]]></author>
			<pubDate>Sat, 20 May 2017 02:21:28 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=8148#p8148</guid>
		</item>
	</channel>
</rss>
