]> git.localhorst.tv Git - orbi.git/blob - src/world/Entity.h
21663d31c216f230c1f5cc960f865589ba0c530a
[orbi.git] / src / world / Entity.h
1 #ifndef ORBI_ENTITY_H_
2 #define ORBI_ENTITY_H_
3
4 #include "AABB.h"
5 #include "../graphics/Vector.h"
6
7
8 namespace orbi {
9
10 class Entity {
11
12 public:
13         constexpr Entity() { }
14         virtual ~Entity() { }
15
16 public:
17         void Update(float dt, Vector<float> extAcc, Vector<float> tv);
18         void Move(Vector<float> delta);
19
20 public:
21         Vector<float> pos;
22         Vector<float> vel;
23         Vector<float> acc;
24
25         AABB bounds;
26         AABB vbox;
27         AABB hbox;
28
29         float mass = 1.0f;
30         float elast = 0.75f;
31
32         bool onGround = false;
33
34 };
35
36 }
37
38 #endif