]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Entity.hpp
show camera position in debug overlay
[blank.git] / src / world / Entity.hpp
index a5723f43b6cd6afb85b9e959d9ec23fbf9cb2aac..05d795f38af6e67e0b0ac2b2633628efc58f2496 100644 (file)
@@ -43,6 +43,10 @@ public:
 
        const Chunk::Pos ChunkCoords() const noexcept { return chunk; }
 
+       glm::vec3 AbsolutePosition() const noexcept {
+               return glm::vec3(chunk * Chunk::Extent()) + position;
+       }
+
        const glm::quat &AngularVelocity() const noexcept { return angular_velocity; }
        void AngularVelocity(const glm::quat &) noexcept;