title: openGL - I want the camera to get closer to the object, how?
body: <p>I used the Qt equivalent to the gluLookAt to set my view matrix and I've been moving it by translating it everywhere in the scene.. now I want to get close with the camera to an object. </p>
  
  <p>I know the position of the object, both in object coords and in each other coords (I have the model matrix for that object), but how to get the position of the camera?</p>
  
  <p>To animate the camera to get closer and closer to the object I suppose I should take two points:</p>
  
  <ul>
  <li>The point where the object is</li>
  <li>The point where the camera is</li>
  </ul>
  
  <p>and then do something like </p>
  
  <pre><code>QVector3D direction_to_get_closer = point_where_object_is - point_where_camera_is
  </code></pre>
  
  <p>How do I get the point where the camera is? Or, alternatively if this is not needed, how do I get the vector to the direction the camera has to follow (no rotations, I just need translations, this is going to simplify things) to reach the object?</p>