]> git.localhorst.tv Git - orbi.git/blobdiff - src/world/Entity.h
orientation for entities
[orbi.git] / src / world / Entity.h
index a7e45d292b277490c41d9657c68d2082e9f375b0..83135f99115b10483a039e5f8754326b0eab3718 100644 (file)
@@ -9,8 +9,15 @@ namespace orbi {
 
 class Entity {
 
+public:
+       enum Orientation {
+               LOOKS_LEFT,
+               LOOKS_RIGHT,
+       };
+
 public:
        constexpr Entity() { }
+       virtual ~Entity() { }
 
 public:
        void Update(float dt, Vector<float> extAcc, Vector<float> tv);
@@ -25,8 +32,7 @@ public:
        AABB vbox;
        AABB hbox;
 
-       float mass = 1.0f;
-       float elast = 0.75f;
+       Orientation orient = LOOKS_LEFT;
 
        bool onGround = false;