]> git.localhorst.tv Git - orbi.git/blobdiff - src/world/Entity.h
orientation for entities
[orbi.git] / src / world / Entity.h
index 21663d31c216f230c1f5cc960f865589ba0c530a..83135f99115b10483a039e5f8754326b0eab3718 100644 (file)
@@ -9,6 +9,12 @@ namespace orbi {
 
 class Entity {
 
+public:
+       enum Orientation {
+               LOOKS_LEFT,
+               LOOKS_RIGHT,
+       };
+
 public:
        constexpr Entity() { }
        virtual ~Entity() { }
@@ -26,8 +32,7 @@ public:
        AABB vbox;
        AABB hbox;
 
-       float mass = 1.0f;
-       float elast = 0.75f;
+       Orientation orient = LOOKS_LEFT;
 
        bool onGround = false;