summaryrefslogtreecommitdiffstats
path: root/src/GameState.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/GameState.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/GameState.cpp b/src/GameState.cpp
index 180db98..28e8007 100644
--- a/src/GameState.cpp
+++ b/src/GameState.cpp
@@ -39,6 +39,7 @@ void GameState::Update(float deltaTime) {
RaycastResult raycast = world.Raycast(player->pos + player->EyeOffset, direction);
selectedBlock = raycast.isHit ? raycast.hitBlock : Vector(0,0,0);
distanceToSelectedBlock = raycast.isHit ? (player->pos - raycast.hitPos).GetLength() : 0.0f;
+ raycastHit = raycast.hitPos;
}
}