diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-04-02 11:46:10 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-04-05 21:33:03 -0300 |
commit | c7cfe5330c5903f23f020633ebe433f1f485dd87 (patch) | |
tree | 8753445b32ee14dd1bc41697383936163c59648a /scene/resources/convex_polygon_shape_2d.cpp | |
parent | 9501900e1bd44b9aa2feb32b636c9bc9283a8363 (diff) | |
download | redot-engine-c7cfe5330c5903f23f020633ebe433f1f485dd87.tar.gz |
Make 'ConvexPolygonShape2D' start empty, so it's consistent with other shapes.
Diffstat (limited to 'scene/resources/convex_polygon_shape_2d.cpp')
-rw-r--r-- | scene/resources/convex_polygon_shape_2d.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scene/resources/convex_polygon_shape_2d.cpp b/scene/resources/convex_polygon_shape_2d.cpp index f275405de2..d424fb2814 100644 --- a/scene/resources/convex_polygon_shape_2d.cpp +++ b/scene/resources/convex_polygon_shape_2d.cpp @@ -99,10 +99,4 @@ Rect2 ConvexPolygonShape2D::get_rect() const { ConvexPolygonShape2D::ConvexPolygonShape2D() : Shape2D(Physics2DServer::get_singleton()->convex_polygon_shape_create()) { - - int pcount = 3; - for (int i = 0; i < pcount; i++) - points.push_back(Vector2(Math::sin(i * Math_PI * 2 / pcount), -Math::cos(i * Math_PI * 2 / pcount)) * 10); - - _update_shape(); } |