Add collision to only the borders of a node, allowing a sprite to move freely inside of the node

Viewed 309

I am building a game in which I "dig" underground to allow a ball to fall through. Is it possible to allow this ball collide with the borders of the node whilst inside of it. Based on the image below, my goal is to draw a tunnel with touchMoved and let the ball fall in while colliding with the surface of the tunnel.

Example of goal

2 Answers
Related