Fix uninitialized members in physics query results

This commit is contained in:
PouleyKetchoupp
2021-06-07 10:40:15 -07:00
parent 5d8fe70de5
commit c6bd0fd0f7
2 changed files with 16 additions and 16 deletions

View File

@ -160,9 +160,9 @@ public:
Vector2 position;
Vector2 normal;
RID rid;
ObjectID collider_id;
Object *collider;
int shape;
ObjectID collider_id = 0;
Object *collider = nullptr;
int shape = 0;
Variant metadata;
};
@ -170,9 +170,9 @@ public:
struct ShapeResult {
RID rid;
ObjectID collider_id;
Object *collider;
int shape;
ObjectID collider_id = 0;
Object *collider = nullptr;
int shape = 0;
Variant metadata;
};
@ -189,8 +189,8 @@ public:
Vector2 point;
Vector2 normal;
RID rid;
ObjectID collider_id;
int shape;
ObjectID collider_id = 0;
int shape = 0;
Vector2 linear_velocity; //velocity at contact point
Variant metadata;
};