diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-02-09 18:24:36 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-02-09 18:24:36 +0100 |
commit | 7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e (patch) | |
tree | 9560a84f1300e2466338426f2e267adba6a06a53 /scene/3d | |
parent | df9c98e107b19fc50bc5ae9f7ed624d693c0fb32 (diff) |
Initialize class variables with default values in scene/ [2/2]
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/vehicle_body_3d.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/vehicle_body_3d.h b/scene/3d/vehicle_body_3d.h index 3c35c0ce97..860fa7e3b7 100644 --- a/scene/3d/vehicle_body_3d.h +++ b/scene/3d/vehicle_body_3d.h @@ -87,7 +87,7 @@ class VehicleWheel3D : public Node3D { Vector3 m_wheelDirectionWS; //direction in worldspace Vector3 m_wheelAxleWS; // axle in worldspace bool m_isInContact = false; - PhysicsBody3D *m_groundObject; //could be general void* ptr + PhysicsBody3D *m_groundObject = nullptr; //could be general void* ptr } m_raycastInfo; void _update(PhysicsDirectBodyState3D *s); |