]> git.localhorst.tv Git - blank.git/blobdiff - src/model/Model.hpp
treat head pitch and yaw as entity state
[blank.git] / src / model / Model.hpp
index ad8cb04a4ffbb1878150cedac1c2cbca493cb498..145a6d9c0fd56cf40dc29145360e2d577a899b26 100644 (file)
@@ -31,6 +31,9 @@ public:
        Part &GetPart(std::size_t i) noexcept { return *part[i]; }
        const Part &GetPart(std::size_t i) const noexcept { return *part[i]; }
 
+       void SetBody(std::uint16_t id) { body_id = id; }
+       const Part &GetBodyPart() const noexcept { return GetPart(body_id); }
+
        void SetEyes(std::uint16_t id) { eyes_id = id; }
        const Part &GetEyesPart() const noexcept { return GetPart(eyes_id); }
 
@@ -41,6 +44,7 @@ private:
        std::uint32_t id;
        Part root;
        std::vector<Part *> part;
+       std::uint16_t body_id;
        std::uint16_t eyes_id;
 
 };