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