]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/ui.cpp
simplify ray/chunk intersection test
[blank.git] / src / ui / ui.cpp
index c45b34b13213cf85dc6317e46e63fecae0abfa2d..02f2781c5e8f9cdb2326c1933092fd9105569ff1 100644 (file)
@@ -97,10 +97,10 @@ void PlayerController::Invalidate() noexcept {
 void PlayerController::UpdatePlayer() noexcept {
        if (dirty) {
                Ray aim = player.Aim();
-               if (!world.Intersection(aim, glm::mat4(1.0f), player.GetEntity().ChunkCoords(), aim_world)) {
+               if (!world.Intersection(aim, player.GetEntity().ChunkCoords(), aim_world)) {
                        aim_world = WorldCollision();
                }
-               if (!world.Intersection(aim, glm::mat4(1.0f), player.GetEntity(), aim_entity)) {
+               if (!world.Intersection(aim, player.GetEntity(), aim_entity)) {
                        aim_entity = EntityCollision();
                }
                if (aim_world && aim_entity) {