X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.hpp;fp=src%2Fworld%2FEntity.hpp;h=7c10395ce6c5a04025d57467984c55fc26f4db2c;hb=52154f309e569c913520dd004e9fafcbc4671e6f;hp=69fb0eb8cf7e7154590ddf52f88146428de75bd0;hpb=170c0ff60b9679c954a9e74d5300c9929899b2bd;p=blank.git diff --git a/src/world/Entity.hpp b/src/world/Entity.hpp index 69fb0eb..7c10395 100644 --- a/src/world/Entity.hpp +++ b/src/world/Entity.hpp @@ -117,7 +117,7 @@ public: private: void UpdateModel() noexcept; - void UpdateView() noexcept; + void UpdateTransforms() noexcept; void UpdateHeading() noexcept; private: @@ -130,10 +130,12 @@ private: AABB bounds; EntityState state; - /// local transform of eyes + /// chunk to model space + glm::mat4 model_transform; + /// model to view space /// if this entity has no model, the eyes are assumed to - /// be at local origin and oriented towards -Z - glm::mat4 view_local; + /// be at origin and oriented towards pitch of model space + glm::mat4 view_transform; float speed; glm::vec3 heading;