title: how to rotate all objects by their own centers and then translate them to the real position (it isn't working)
body: <p>What is the way to make all the objects that are not aligned with the origin center (vector3(0.0f,0.0f,0.0f)) , rotate about its own central axis?</p>
  
  <p>the problem in pseudo code:</p>
  
  <pre><code>vector3 vector3 objectCenter = (10,5,0); // current object center
  vector3 vector3 objectPosition = (40,5,0); // Place to translate the object
  vector3 objectRotation; = 45.0f;
  
      matrix.loadIdentity ();
      matrix.translate (objectCenter);
  
      //apply transformations
      matrix.rotateX (objectRotation);
  
      matrix.translate (-objectCenter);
  
      //itś work correctly until here
      //when i try to translate the object to the real position, the rotation is incorrect.
  
      matrix.translate (objectPosition);
  </code></pre>
  
  <p>I use C++, glm (to matrix manage) and OpenGL.</p>