Problem with ConcavePolygonShape2D

julusonjuluson Posts: 4Member

I encounter a problem with ConcavePolygonShape2D. I tried to adapt the Area 2D Input Events example, provided in the Godot examples set. I did replace the RectangleShape2d of the Area 2D Input Events example, with a ConcavePolygonShape2D. My purpose was to design a so-called tromino, i.e. the so-called "V" tromino. I did set the Array Property Edit area with Array Size = 6. I did then set the Indices accordingly: (0,0), (0,64), (32,64), (32,32), (64,32), (64, 0). But as a result, the shape is
not properly designed: only 3 lines appear.


  • razvanc-rrazvanc-r Posts: 84Member

    You're getting 3 lines because you're creating 3 segments with the above, ConcavePolygonShape2D can only be built with segments as it seems, maybe you want CollisionPolygon2D node instead? See attached example

Sign In or Register to comment.