]> git.localhorst.tv Git - orbi.git/blob - src/world/Entity.h
entity/entity collision stub
[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 bounds;
21         AABB vbox;
22         AABB hbox;
23         Vector<float> vel;
24         Vector<float> acc;
25
26         float mass = 1.0f;
27         float elast = 0.75f;
28
29         bool onGround = false;
30
31 };
32
33 }
34
35 #endif