X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.hpp;fp=src%2Fworld%2FEntity.hpp;h=b140a08d95d7b21db850ef1966f841ffccf938f3;hb=3e7901a804ef85eea01adfb60274218748c0337b;hp=e38e0b449e79bf41eae31c4800a7bc10ad04d6ea;hpb=110ef77a019384fccbbf33649955bcc064a6399e;p=blank.git diff --git a/src/world/Entity.hpp b/src/world/Entity.hpp index e38e0b4..b140a08 100644 --- a/src/world/Entity.hpp +++ b/src/world/Entity.hpp @@ -96,6 +96,8 @@ public: /// get a transform for this entity's coordinate space const glm::mat4 &Transform() const noexcept { return model_transform; } + /// get the entity's local up vector + const glm::vec4 &Up() const noexcept { return model_transform[1]; } /// get a transform for this entity's coordinate space relative to reference chunk glm::mat4 Transform(const glm::ivec3 &reference) const noexcept; /// get a transform for this entity's view space relative to reference chunk