title: Getting bullet physics transform matrix for Opengl
body: <p>As of now I am using the below code to get the transform matrix from my rigid body in bullet and apply it to my instance. Now right now it seems to not be updating my rendered cube's transform, my first though is to believe that I'm losing data when creating a glm mat4. So my question is am I converting the data correctly to transform my matrix?</p>
  
  <pre><code>for (int i = 0; i &lt; WoodenCrateInstances.size(); i++)
  {
      btTransform t;
      WoodenCrateInstances.at(i).asset-&gt;body-&gt;getMotionState()-&gt;getWorldTransform(t);
      float mat[16];
      t.getOpenGLMatrix(mat);
      glm::vec3 vec = glm::make_vec3(mat);
      WoodenCrateInstances.at(i).transform = glm::translate(glm::mat4(), vec);
  }
  </code></pre>