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.