Maintain distance to controller when recentering

This commit is contained in:
Patrick Nicolas
2024-04-13 11:24:50 +02:00
parent 191b3ef477
commit 09c2bf19e5
4 changed files with 30 additions and 8 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ static void check_vk_result(VkResult result)
}
}
std::optional<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in)
std::optional<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in) const
{
if (!in.active)
return {};