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) { bounds.Move(delta); }
+ void Move(Vector<float> delta);
public:
- AABB bounds;
+ Vector<float> pos;
Vector<float> vel;
Vector<float> acc;
- float mass = 1.0f;
- float elast = 0.75f;
+ AABB bounds;
+ AABB vbox;
+ AABB hbox;
+
+ Orientation orient = LOOKS_LEFT;
bool onGround = false;