summaryrefslogtreecommitdiffhomepage
path: root/src/raycast.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-29 00:39:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-29 00:39:41 +0100
commit0b09ee33c25e8ae8f1a7aa6b05e9453a82c65689 (patch)
tree3a9938551e923cb3e569db096a2be9c94fb29857 /src/raycast.hpp
parent3b03a82fb6db0a3fda4d711456fc89e7d21bfe26 (diff)
always collect timing info on pathfinding/raycasting
Diffstat (limited to 'src/raycast.hpp')
-rw-r--r--src/raycast.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raycast.hpp b/src/raycast.hpp
index 3871c42f..6463a143 100644
--- a/src/raycast.hpp
+++ b/src/raycast.hpp
@@ -17,6 +17,7 @@ struct raycast_result_s
{
point from, to, collision;
collision_data collider;
+ float time = 0;
bool has_result : 1 = false,
success : 1 = false;
};