Is this a bug? ChainShape

Hi all,
just wondering if this is a bug or if i'm missing something about ChainShapes.

I've the world as in the images attached.

The ramp is a chainshape with the following joints

Code:
(0.0,40.0)
(100.0,40.0)
(190.0,50.0)
(260.0,70.0)
(290.0,90.0)
(310.0,120.0)
(320.0,160.0)
(320.0,190.0)
(370.0,190.0)
(370.0,0.0)
(0.0,0.0)
(0.0,40.0)


I've also a square box, with a side of 30.0, in (40.0,Y) with Y>70, and a circleshape of radius 15.0 in (75.0,55.0).

The box penetrate the chainshape, the circleshape doesn't.

So i've added a few more joints to the chainshape, between (0.0,40.0) and (100.0,40.0), in
Code:
(10.0,40.0)
(20.0,40.0)
(30.0,40.0)
(40.0,40.0)
(50.0,40.0)


and i can finally manage to get the box stay over the chainshape.

Is this behavior ok?
The first and last vertex (0.0, 40.0) are the same point, which can cause problems.
viewtopic.php?f=4&t=7973&p=35363

Try removing the last one - you don't need to repeat them like that to make it work. By the way these points are not called joints... in Box2D 'joint' means something else entirely 🙂
It worked, thanks a lot. 😀 😀

P.S.
How am i supposed to call that?
vertex

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