]> git.localhorst.tv Git - orbi.git/blob - src/world/Entity.h
hbox/vbox implementation
[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
15 public:
16         void Update(float dt, Vector<float> extAcc, Vector<float> tv);
17         void Move(Vector<float> delta);
18
19 public:
20         AABB vbox;
21         AABB hbox;
22         Vector<float> vel;
23         Vector<float> acc;
24
25         float mass = 1.0f;
26         float elast = 0.75f;
27
28         bool onGround = false;
29
30 };
31
32 }
33
34 #endif