]> git.localhorst.tv Git - space.git/blobdiff - src/entity/Entity.h
controlled entity
[space.git] / src / entity / Entity.h
diff --git a/src/entity/Entity.h b/src/entity/Entity.h
new file mode 100644 (file)
index 0000000..9fd2dff
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef SPACE_ENTITY_H_
+#define SPACE_ENTITY_H_
+
+#include "../math/Vector.h"
+
+
+namespace space {
+
+class Entity {
+
+public:
+       constexpr Entity() { }
+
+public:
+       Vector<int> area;
+       Vector<float> pos;
+       Vector<float> vel;
+       Vector<float> acc;
+
+public:
+       void Update(float delta) {
+               pos += vel * delta;
+               vel += acc * delta;
+       }
+
+};
+
+}
+
+#endif