Object Coordinates and World Coordinates Help???

Well recently i had the problem of scaling an object but the scaling was also affecting the position. I found this Solution but i can’t understand how to implement it. Can you show me in code how its done?

Thank you.

If you want, you can try using the GLM library, which simplifies transformations.
trans = glm::scale(trans, glm::vec3(1.5, 1.5, 1.5));
https://learnopengl.com/Getting-started/Transformations …(section) In practice