]> git.localhorst.tv Git - blank.git/blobdiff - src/model/model.cpp
some annotations
[blank.git] / src / model / model.cpp
index cad62ac2ec0cea30c99e39685adbef0729b6f3a8..db44cbf21c0e351c757dcb484027c93dedd81672 100644 (file)
@@ -27,6 +27,14 @@ Instance::~Instance() {
 
 }
 
+Part::State &Instance::BodyState() noexcept {
+       return state[model->GetBodyPart().ID()];
+}
+
+glm::mat4 Instance::BodyTransform() const noexcept {
+       return model->GetBodyPart().GlobalTransform(*this);
+}
+
 Part::State &Instance::EyesState() noexcept {
        return state[model->GetEyesPart().ID()];
 }
@@ -44,6 +52,7 @@ Model::Model()
 : id(0)
 , root()
 , part()
+, body_id(0)
 , eyes_id(0) {
 
 }