diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-01 23:47:35 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-01 23:47:35 +0100 |
commit | 31317175d72c62994b98a93e1b827633b4de9cb2 (patch) | |
tree | 91e9f1068da03a7a5419c44a927a30ff7d29235c /include/YAGE/Physics | |
parent | 67770ad6b1fcbc6730c140b0d3edd3fc9efbdc7b (diff) | |
download | YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.tar.gz YAGE-31317175d72c62994b98a93e1b827633b4de9cb2.zip |
Fixing constructors and destructors
Diffstat (limited to 'include/YAGE/Physics')
-rw-r--r-- | include/YAGE/Physics/body.hpp | 2 | ||||
-rw-r--r-- | include/YAGE/Physics/collider.hpp | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/include/YAGE/Physics/body.hpp b/include/YAGE/Physics/body.hpp index 8fb7aaf6..b0869779 100644 --- a/include/YAGE/Physics/body.hpp +++ b/include/YAGE/Physics/body.hpp @@ -39,8 +39,6 @@ protected: Vector2d force_=Vector2d(0, 0); public: - virtual ~Body(); - // apply force to the object and update the velocity virtual void applyForce(const Vector2d &force)=0; virtual void update()=0; diff --git a/include/YAGE/Physics/collider.hpp b/include/YAGE/Physics/collider.hpp index fc5d38d5..716b7d4c 100644 --- a/include/YAGE/Physics/collider.hpp +++ b/include/YAGE/Physics/collider.hpp @@ -28,9 +28,6 @@ protected: public: Collider(const glm::vec2 &position, const glm::vec2 &size) : position_(position), size_(size) {} - // virtual deconstructor for classes that inherits - virtual ~Collider() {} - // function that checks if two colliders are colliding virtual bool collides(const Collider &collider) const=0; |