]> git.localhorst.tv Git - orbi.git/blobdiff - src/world/Entity.h
orientation for entities
[orbi.git] / src / world / Entity.h
index 53087b6972ef8e80cab44debef75c0373b1622a0..83135f99115b10483a039e5f8754326b0eab3718 100644 (file)
@@ -9,22 +9,30 @@ 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);
        void Move(Vector<float> delta);
 
 public:
+       Vector<float> pos;
+       Vector<float> vel;
+       Vector<float> acc;
+
        AABB bounds;
        AABB vbox;
        AABB hbox;
-       Vector<float> vel;
-       Vector<float> acc;
 
-       float mass = 1.0f;
-       float elast = 0.75f;
+       Orientation orient = LOOKS_LEFT;
 
        bool onGround = false;