aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-04-14 10:37:18 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-04-14 10:37:18 +0100
commitdaa032e2f6c86da16902f654055d8b040d7670bb (patch)
treef610e03af408999521840a4c7664ea38a844a4a5 /include
parent6d410918675effd76c5b30f6dbe5b6f4b9154708 (diff)
downloadYAGE-daa032e2f6c86da16902f654055d8b040d7670bb.tar.gz
YAGE-daa032e2f6c86da16902f654055d8b040d7670bb.zip
Adding physics engine
Diffstat (limited to 'include')
-rw-r--r--include/YAGE/Physics/body.hpp17
-rw-r--r--include/YAGE/Physics/collider.hpp13
-rw-r--r--include/YAGE/Physics/collisionbody.hpp14
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