Circular pipes in Physic 2d : A big circle should contains a rigidbody

Hello,

I would like to construct like a circular pipe like this.
But how to configure the big circle collider in order to collide only within.

91811-capture-decran-2017-04-11-a-163726.png

Unity does not support an inverted circle collider, that’s for sure. You could:

  • calculate that collision yourself, it’s just radi.
  • Construct a concave polygon collider matching the circle as close as possible, probably or of two halfs.
  • Don’t use physics at all, since it’s all circles you’re using ,wherever gameplay you’re achieving, it’s probably just a little math.

I think I have found a workaround if I attach a Distance Joint to the center of the circle.

91815-capture-decran-2017-04-11-a-172215.png

(animated gif are not allowed) :frowning: