diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-14 10:37:18 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-04-14 10:37:18 +0100 |
commit | daa032e2f6c86da16902f654055d8b040d7670bb (patch) | |
tree | f610e03af408999521840a4c7664ea38a844a4a5 /include | |
parent | 6d410918675effd76c5b30f6dbe5b6f4b9154708 (diff) | |
download | YAGE-daa032e2f6c86da16902f654055d8b040d7670bb.tar.gz YAGE-daa032e2f6c86da16902f654055d8b040d7670bb.zip |
Adding physics engine
Diffstat (limited to 'include')
-rw-r--r-- | include/YAGE/Physics/body.hpp | 17 | ||||
-rw-r--r-- | include/YAGE/Physics/collider.hpp | 13 | ||||
-rw-r--r-- | include/YAGE/Physics/collisionbody.hpp | 14 |
3 files changed, 44 insertions, 0 deletions
diff --git a/include/YAGE/Physics/body.hpp b/include/YAGE/Physics/body.hpp new file mode 100644 index 00000000..70ff2528 --- /dev/null +++ b/include/YAGE/Physics/body.hpp @@ -0,0 +1,17 @@ +#ifndef YAGE_BODDY_HPP +#define YAGE_BODDY_HPP + +#include <glm/glm.hpp> + +class Body +{ +private: + glm::vec2 centerOfMass_; + double mass_; + +public: + virtual ~Body(); + +}; + +#endif diff --git a/include/YAGE/Physics/collider.hpp b/include/YAGE/Physics/collider.hpp new file mode 100644 index 00000000..ff074f14 --- /dev/null +++ b/include/YAGE/Physics/collider.hpp @@ -0,0 +1,13 @@ +#ifndef YAGE_COLLIDER_HPP +#define YAGE_COLLIDER_HPP + +// The Collider class helps collision detection + +class Collider +{ +public: + virtual ~Collider(); +}; + + +#endif diff --git a/include/YAGE/Physics/collisionbody.hpp b/include/YAGE/Physics/collisionbody.hpp new file mode 100644 index 00000000..ecbd22dc --- /dev/null +++ b/include/YAGE/Physics/collisionbody.hpp @@ -0,0 +1,14 @@ +#ifndef YAGE_COLLISION_BODY_HPP +#define YAGE_COLLISION_BODY_HPP + +#include "Physics/body.hpp" + +class CollisionBody : public Body +{ +public: + CollisionBody(); + virtual ~CollisionBody(); +}; + + +#endif |