Initialize class variables with default values in scene/ [1/2]

This commit is contained in:
Rafał Mikrut
2021-02-07 22:29:31 +01:00
parent 57e2822a05
commit 003bb8e1a8
139 changed files with 871 additions and 1652 deletions
+7 -7
View File
@@ -46,14 +46,14 @@ public:
};
protected:
Rect2 aabb;
BuildMode build_mode;
Rect2 aabb = Rect2(-10, -10, 20, 20);
BuildMode build_mode = BUILD_SOLIDS;
Vector<Point2> polygon;
uint32_t owner_id;
CollisionObject2D *parent;
bool disabled;
bool one_way_collision;
real_t one_way_collision_margin;
uint32_t owner_id = 0;
CollisionObject2D *parent = nullptr;
bool disabled = false;
bool one_way_collision = false;
real_t one_way_collision_margin = 1.0;
Vector<Vector<Vector2>> _decompose_in_convex();