Conflicting information on *PolygonShape2D colliders.
Asked Answered
S

3

0

The documentation for ConcavePolygonShape2D says that it's better to use it instead of PolygonCollider2D when dealing with static colliders. When I use a ConcavePolygonShape2D in a ShapeCollider2D though, I get a warning (in the scene tree) saying to not use polygons with a shape collider and to instead use a PolygonCollider2D. Unless I'm misunderstanding something, these two sources seem to be stating the exact opposites of each other, so I'm wondering which one I should listen to.

Subtile answered 15/5, 2023 at 15:20 Comment(0)
P
0

Subtile The warning in the editor only says that ConcavePolygonShape2D is not directly editable via gui. So it doesn't contradict what's stated in the docs.

Plastometer answered 15/5, 2023 at 20:54 Comment(0)
S
0

Plastometer it says polygon shapes are not meant to be used or edited through collisoinshape2d. If all it really means is that it's harder to edit, it really could have been worded better. Oh well, thank you

Subtile answered 15/5, 2023 at 21:10 Comment(0)
P
0

Subtile Yeah, definitely room for improvement there 🙂

Plastometer answered 15/5, 2023 at 21:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.