Without a demo this is just a guess. Scaling an object with subobjects is done by scaling only the top object. The scaling is relayed down the internal objects automatically, because this is how matrices work at low level. Also, always prefer to scale the mesh, not the geometry (unless you have very specific reason to do it). Namely, try this:
mesh.scale.set(scale, scale, scale);
or if you really need to scale internal objects separately from the top object, then this:
Thanks @PavelBoytchev for your reply. Yes, setting the mesh scale to 1, with
mesh.scale.set(1, 1, 1);
preserves the animation, but doing so the object is set to it’s original size, that in my case is:
{ width: 0.3353704586625099, height: 0.36163274192949757, depth: 0.2816067337989807 }
What I want to to is to scale the object so that it is enclosed in a bounding box of 1.
And then set this new size as that one with scale = 1.
I need this because later I need to scale this object and a sphere, from 10 to 150, and they both have to occupy the same space. I need to uniform the scale of my objects
Then, when in a slider I need to set the size of my objects (sphere with a radius of 0.5, cube with a side of 1 and imported models), i use this function: