X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fentity.cpp;h=23586010e1183f4238420d73e5ba458414748711;hb=d910f0fdc2bb2f991690fd1e879ce2eccb8f3714;hp=52502c26f256aceebcd7b2a30958cf98ec84c9ff;hpb=46509f82dcea114b004c53a7f3a9608f2518077f;p=blank.git diff --git a/src/entity.cpp b/src/entity.cpp index 52502c2..2358601 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -94,7 +94,7 @@ glm::mat4 Entity::Transform(const Chunk::Pos &chunk_offset) const { Ray Entity::Aim(const Chunk::Pos &chunk_offset) const { glm::mat4 transform = Transform(chunk_offset); - glm::vec4 from = transform * glm::vec4(0.0f, 0.0f, 1.0f, 1.0f); + glm::vec4 from = transform * glm::vec4(0.0f, 0.0f, 0.0f, 1.0f); from /= from.w; glm::vec4 to = transform * glm::vec4(0.0f, 0.0f, -1.0f, 1.0f); to /= to.w;