Move ball inside a circle.

Hello everybody,

I want to move ball inside a circle. Can anybody have an idea. in the circle point i just return the ball with the help of contact listener, but what should i do such that it will freely gone through inside the circle (say in the basket ball game). Any help would be appreciated.

Regards,
Sunil
anyone please..
It's not very clear what you're asking, maybe a diagram would help.
If you're talking about keeping one shape inside another shape, Box2D doesn't support concave shapes. You would have to make the outer shape from individual convex shapes, like this: http://www.iforce2d.net/image/lotto-ss1.png

Original thread: https://box2d.org/forum/viewtopic.php?t=8675