From 948d9e95a02a527991c988c3b7933bfe86b338df Mon Sep 17 00:00:00 2001 From: fallenatlas Date: Wed, 10 Jan 2024 20:22:32 +0000 Subject: [PATCH] refactor(physics): improve force and impulse components code readability --- engine/include/cubos/engine/physics/components/force.hpp | 5 ++--- engine/include/cubos/engine/physics/components/impulse.hpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/engine/include/cubos/engine/physics/components/force.hpp b/engine/include/cubos/engine/physics/components/force.hpp index c6a8d27100..edca5450b2 100644 --- a/engine/include/cubos/engine/physics/components/force.hpp +++ b/engine/include/cubos/engine/physics/components/force.hpp @@ -15,10 +15,9 @@ namespace cubos::engine /// @ingroup physics-plugin struct Force { - public: CUBOS_REFLECT; - const glm::vec3 getForce() const + glm::vec3 getForce() const { return mForce; } @@ -30,7 +29,7 @@ namespace cubos::engine void clearForce() { - mForce = {0.0f, 0.0f, 0.0f}; + mForce = {0.0F, 0.0F, 0.0F}; } private: diff --git a/engine/include/cubos/engine/physics/components/impulse.hpp b/engine/include/cubos/engine/physics/components/impulse.hpp index 4d498278a5..220d5437aa 100644 --- a/engine/include/cubos/engine/physics/components/impulse.hpp +++ b/engine/include/cubos/engine/physics/components/impulse.hpp @@ -15,10 +15,9 @@ namespace cubos::engine /// @ingroup physics-plugin struct Impulse { - public: CUBOS_REFLECT; - const glm::vec3 getImpulse() const + glm::vec3 getImpulse() const { return mImpulse; } @@ -30,7 +29,7 @@ namespace cubos::engine void clearImpulse() { - mImpulse = {0.0f, 0.0f, 0.0f}; + mImpulse = {0.0F, 0.0F, 0.0F}; } private: