]> git.localhorst.tv Git - orbi.git/blob - src/world/Entity.h
simple controller
[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) { bounds.Move(delta); }
18
19 public:
20         AABB bounds;
21         Vector<float> vel;
22         Vector<float> acc;
23
24         float mass = 1.0f;
25         float elast = 0.75f;
26
27         bool onGround = false;
28
29 };
30
31 }
32
33 #endif