title: libgdx - how to move a 3d model instance forward
body: <p>I'm wrestling with a simple cube which doesn't want to move properly forward with libgdx.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>public void move(float delta) {
      transform.translate(direction.x * speed * delta, direction.y * speed * delta, direction.z * speed * delta);
      transform.getTranslation(position);
  }
  
  public void rotateLeft(float delta) {
      float degrees = 1 * rotateSpeed * delta;
      transform.rotate(Vector3.Z, degrees);
      direction.rotate(Vector3.Z, degrees);
  }
  
  public void update(float delta) {
      rotateLeft(delta);
      move(delta);
  }
  </code></pre>
  
  <p>and here's the result :</p>
  
  <p><a href="http://www.filedropper.com/testcube" rel="nofollow">cube test video download link</a></p>
  
  <p>where the blue arrow is the direction + the cube position vector and the red one is the direction.</p>
  
  <p>I must have mistaken the translate() method...</p>
  
  <p>Any idea?</p>