I don’t think the issue comes from the way you’re scaling your group, everything seems to be resized as it should be.
But as @msDestiny14 pointed out, scaling the children (only ‘boxes’) is a possible workaround, see in this playground.
The cliping works fine, but then the
plane2 object doesn’t have the right amplitude (from the cube’s top to bottom).
Your real issue is that it’s not
plane2 that’s cliping your object (that’s merely an indicator you created), it’s
clipPlane2. And while
plane2.parent has been set to your
root object (line 50), and thus scales down as expected as you’re sliding down, the
clipPlane2 doesn’t. It’s not in the group, why should it ?
Proof is that when scaled at 0.5, the inner box starts being cliped at about this sliding point here :
And if you only scale back to 1 :
That’s exactly where
) was in space.
So if the workaround I mentionned doesn’t do the trick for you, the solution would be to reposition dynamically your
clipPlane2 object in your observable according to scale changing, or have the slider move
plane2 along the Ys and then make
clipPlane2 be wherever
I would have tried it out but I’m getting a little confused with your really huge positions and dimensions, I think you’ll know your way around better than me. Anyway, hope to have helped !