Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | epord | |
Old Version | Published before Godot 3 was released. |
Hi, I am using a CollisionPolygon2D. The CollisionPolygon2D is splited in several convex polygons (ConvexShape2D).
→ Is there a way to get all these individual ConvexShape2D?
I saw in C++ code on Github that CollisionPolygon2D has a method Vector<Vector<Vector2>> _decompose_in_convex();
that returns just what I need, but I can’t access it from GDScript.
→ Is there a way to change C++ code, recompile, and access the function from GDScript?