title: Rotating object AABBs updating incorrectly
body: <p>When rotating the object the AABBs around the legs dont move with the legs. Instead they stay in the same spot in relation to the object, and simply just increase in size to keep the leg in the AABB instead of moving with the legs.
  This is caused by each of these AABBs having the same position, which is the position of the main object itself. </p>
  
  <p>Lets assume this code below is called every frame, is it possible to have these AABBs follow correctly. (Im not asking for the AABBs to rotate with the legs perfectly, i know they cant because they are AABBs but i just want the position to stay around  the leg correctly)</p>
  
  <pre><code>        //Clear old AABBs           
          obj-&gt;ClearSecondaryAABBs();
  
          glm::mat4 rotMat = obj-&gt;GetRotationMatrix();
          glm::vec3 scale = obj-&gt;GetScale();
  
          //Calc min max for each mesh
          for (auto&amp;&amp; mesh : tempObj-&gt;GetMeshes())
          {
              glm::vec3 min = mesh.Vertices[0].Position * scale;
              glm::vec3 max = mesh.Vertices[0].Position * scale;
              glm::vec3 v;
  
  
              for (size_t i = 0; i &lt; mesh.Vertices.size(); i++)
              {
                  v = mesh.Vertices[i].Position * scale;
                  v = rotMat * glm::vec4(v, 1);
                  CalculateMinMax(v, min, max);
              }
  
              // create new aabb
              AABB* newBox = new AABB(min, max);
  
              newBox-&gt;min += obj-&gt;GetPosition();
              newBox-&gt;max += obj-&gt;GetPosition();
  </code></pre>
  
  <p>Here is a video of the problem, hopefully you can see whats happening, mainly look at what the AABBs of the legs do
  <a href="https://www.youtube.com/watch?v=B__1pLnjv7k" rel="nofollow noreferrer">https://www.youtube.com/watch?v=B__1pLnjv7k</a></p>