]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Entity.hpp
first ideas for placing oriented blocks
[blank.git] / src / world / Entity.hpp
index e38e0b449e79bf41eae31c4800a7bc10ad04d6ea..b140a08d95d7b21db850ef1966f841ffccf938f3 100644 (file)
@@ -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