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;
+
};
}