diff --git a/engine/include/cubos/engine/physics/components/angular_impulse.hpp b/engine/include/cubos/engine/physics/components/angular_impulse.hpp index 6a0a1d22c8..32f1384c9e 100644 --- a/engine/include/cubos/engine/physics/components/angular_impulse.hpp +++ b/engine/include/cubos/engine/physics/components/angular_impulse.hpp @@ -35,7 +35,7 @@ namespace cubos::engine } private: - glm::vec3 mAngularImpulse; + glm::vec3 mAngularImpulse = {0.0F, 0.0F, 0.0F}; }; } // namespace cubos::engine diff --git a/engine/include/cubos/engine/physics/components/angular_velocity.hpp b/engine/include/cubos/engine/physics/components/angular_velocity.hpp index d2bf9d168c..713b7726c3 100644 --- a/engine/include/cubos/engine/physics/components/angular_velocity.hpp +++ b/engine/include/cubos/engine/physics/components/angular_velocity.hpp @@ -19,6 +19,6 @@ namespace cubos::engine { CUBOS_REFLECT; - glm::vec3 vec; + glm::vec3 vec = {0.0F, 0.0F, 0.0F}; }; } // namespace cubos::engine diff --git a/engine/include/cubos/engine/physics/components/impulse.hpp b/engine/include/cubos/engine/physics/components/impulse.hpp index b6819ba41d..261b1a76cc 100644 --- a/engine/include/cubos/engine/physics/components/impulse.hpp +++ b/engine/include/cubos/engine/physics/components/impulse.hpp @@ -49,8 +49,8 @@ namespace cubos::engine } private: - glm::vec3 mImpulse; - glm::vec3 mAngularImpulse; + glm::vec3 mImpulse = {0.0F, 0.0F, 0.0F}; + glm::vec3 mAngularImpulse = {0.0F, 0.0F, 0.0F}; }; } // namespace cubos::engine diff --git a/engine/include/cubos/engine/physics/components/velocity.hpp b/engine/include/cubos/engine/physics/components/velocity.hpp index 8049d7ab53..07c771fe56 100644 --- a/engine/include/cubos/engine/physics/components/velocity.hpp +++ b/engine/include/cubos/engine/physics/components/velocity.hpp @@ -19,6 +19,6 @@ namespace cubos::engine { CUBOS_REFLECT; - glm::vec3 vec; + glm::vec3 vec = {0.0F, 0.0F, 0.0F}; }; } // namespace cubos::engine