Need HELP with swinging a tube like a rope with a ball dropping through the tube

I’m having trouble creating a piece of code to make a tube like a rope but hollow swinging left to right and vice versa. Then make a ball going through the tube from the top and out the bottom end while it’s swinging. Any help with code would be much much appreciated.

Hi @growing.brainbox,

Well this is a little tricky, but I think it’s possible. You may want to follow the “Chains” example, create two side-by-side chains, and then join each segment of the chain to the one across from it using “distance” joints, so the tube maintains its general width.

The sample project is located in your local Corona application folder here:

SampleCode > Physics > Chains

Best regards,

Brent

Hi Brent. Great thanks I will have a play around and see how I go.

Hi @growing.brainbox,

Well this is a little tricky, but I think it’s possible. You may want to follow the “Chains” example, create two side-by-side chains, and then join each segment of the chain to the one across from it using “distance” joints, so the tube maintains its general width.

The sample project is located in your local Corona application folder here:

SampleCode > Physics > Chains

Best regards,

Brent

Hi Brent. Great thanks I will have a play around and see how I go.