Drop b2d_convexdecomp. no longer necessary.

We now use `thirdparty/misc/triangulator.h` for all physics-related
(collision, navigation) triangulation needs.

Follow-up to #34293.
This commit is contained in:
Rémi Verschelde
2019-12-13 23:23:20 +01:00
parent f18cb89681
commit f111d1aaed
13 changed files with 0 additions and 2284 deletions

View File

@ -853,15 +853,6 @@ public:
return triangles;
}
static Vector<Vector<Vector2> > (*_decompose_func)(const Vector<Vector2> &p_polygon);
static Vector<Vector<Vector2> > decompose_polygon(const Vector<Vector2> &p_polygon) {
if (_decompose_func)
return _decompose_func(p_polygon);
return Vector<Vector<Vector2> >();
}
static bool is_polygon_clockwise(const Vector<Vector2> &p_polygon) {
int c = p_polygon.size();
if (c < 3)