X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.h;h=83135f99115b10483a039e5f8754326b0eab3718;hb=HEAD;hp=b0dcc69b50803753842bd145715761678f110b65;hpb=a8523bee4fc349a800f5f6d67b470c3a801beaa9;p=orbi.git diff --git a/src/world/Entity.h b/src/world/Entity.h index b0dcc69..83135f9 100644 --- a/src/world/Entity.h +++ b/src/world/Entity.h @@ -9,21 +9,30 @@ namespace orbi { class Entity { +public: + enum Orientation { + LOOKS_LEFT, + LOOKS_RIGHT, + }; + public: constexpr Entity() { } + virtual ~Entity() { } public: void Update(float dt, Vector extAcc, Vector tv); void Move(Vector delta); public: - AABB vbox; - AABB hbox; + Vector pos; Vector vel; Vector acc; - float mass = 1.0f; - float elast = 0.75f; + AABB bounds; + AABB vbox; + AABB hbox; + + Orientation orient = LOOKS_LEFT; bool onGround = false;