<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QT3d translation of an object]]></title><description><![CDATA[<p dir="auto">Hi, I am new to QT. I am trying to move an object from one point to another in this function. But, rather than translating the object, QT creates a copy of the cube. How can I use translation.</p>
<p dir="auto">I want the cube to remain at position1 and then move to position2 after 1 second.<br />
@<br />
const QVector3D position1(1,1,1);<br />
const QVector3D position2(-1,0,-2);<br />
CubeView::CubeView(QWindow *parent)<br />
: QGLView(parent)<br />
{<br />
//! [1]<br />
QGLBuilder builder1;<br />
builder1 &lt;&lt; QGL::Faceted;<br />
builder1 &lt;&lt; QGLCube(2);<br />
cube = builder1.finalizedSceneNode();</p>
<pre><code>cube-&gt;setPosition(position1);
Sleep(1000);
cube-&gt;setPosition(position2);
</code></pre>
<p dir="auto">}@</p>
]]></description><link>https://forum.qt.io/topic/48460/qt3d-translation-of-an-object</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 22:46:09 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/48460.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Nov 2014 12:24:27 GMT</pubDate><ttl>60</ttl></channel></rss>