X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fentity.cpp;h=c572429067c6e0dd77bd4a21ac9e1dde7c864b14;hb=1a7bbd64b1fef1f4e2f9303f820d6f3ce76cebf1;hp=cd2491f1bdf441282ea666a6f15218075b9ac6b6;hpb=addf4eb6485a36d40096d87196ed786e6e16ab6d;p=blank.git diff --git a/src/entity.cpp b/src/entity.cpp index cd2491f..c572429 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -57,7 +57,7 @@ void Entity::Rotation(const glm::mat4 &rot) { } glm::mat4 Entity::Transform(const glm::tvec3 &chunk_offset) const { - const glm::vec3 chunk_pos = glm::vec3(chunk - chunk_offset) * Chunk::Extent(); + const glm::vec3 chunk_pos = (chunk - chunk_offset) * Chunk::Extent(); return glm::translate(position + chunk_pos) * rotation; }