How to deform with elasticity

I am not sure if this is the proper place for this thread.

I have a simple cylinder with another cylinder and ball-end as a separate objec inside at a 90 degree angle.

I want to make the inner object turn about its axis and deform the outer cylinder, like the old bugs bunny cartoons where his tunnel is moving around under ground.

I need the outer cylinder to return to its original state when the inner cylinder passes by.

Any help would be greatly appreciated.

You can use the new Shrinkwrap modifier for this .


shrinkwrap.blend (301 KB)

This is good. I didn’t know Shrink wrap would deform the way I wanted. Can I move this tube on its own with the ball inside and the ball STILL deform like this? How about if I close of the tube with faces and have the ball inside, will the ball be forced to stay on the inside of the tube?

Your help has been most helpful and most appreciated.