Expand In One Direction with Scaling

Hello all, having a small problem that I was wondering if anyone else had encountered.

I have a player object, and then as children I have a cube, and a claw that is a child to the cube.

What I am trying to do is when the player clicks fire expand the cube’s Z-scale to make it look like its gotten longer(extended) with the claw.

The problem is that when I expand the Z-scale of the cube the claw Z-scale is also expanded. Is there any way to limit z-scaling to not scale children?

Also I tried having the claw not a child and having a fixed joint to carry it with the cube when the cube expanded, but that didnt work.

Any ideas?

Thank you :slight_smile:

You might be able to set the local scale of the child in inverse proportion to the scale of the parent (ie, if the parent’s scale is multiplied by N, then divide the local scale of the claw by N). However, this won’t give the right result in all cases, especially if the claw moves relative to the parent. You may need to resort to some skinned animation to lengthen the mesh without scaling.