]> git.localhorst.tv Git - orbi.git/blobdiff - src/world/Entity.h
rotatable arm for character entities
[orbi.git] / src / world / Entity.h
index f9671ca03cb13e7f4c45ee410dede7be463476a6..21663d31c216f230c1f5cc960f865589ba0c530a 100644 (file)
@@ -11,23 +11,26 @@ class Entity {
 
 public:
        constexpr Entity() { }
+       virtual ~Entity() { }
 
 public:
        void Update(float dt, Vector<float> extAcc, Vector<float> tv);
-       void Move(Vector<float> delta) { bounds.Move(delta); }
+       void Move(Vector<float> delta);
 
 public:
-       AABB &Bounds() { return bounds; }
-       const AABB &Bounds() const { return bounds; }
-
-private:
-       AABB bounds;
+       Vector<float> pos;
        Vector<float> vel;
        Vector<float> acc;
 
+       AABB bounds;
+       AABB vbox;
+       AABB hbox;
+
        float mass = 1.0f;
        float elast = 0.75f;
 
+       bool onGround = false;
+
 };
 
 }