From 49b7268dc902554fdef3e1701a2a4e8eb5c59c30 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 02:10:50 -0700 Subject: [PATCH] feat(editor): show camera (x,y,z) in status bar Helpful for navigation and noting positions for spawn placement, plus diagnostic value when debugging coordinate issues. Shown only after a terrain is loaded. --- tools/editor/editor_ui.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 440b1924..0dd70028 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -2748,6 +2748,13 @@ void EditorUI::renderStatusBar(EditorApp& app) { } else { ImGui::Text("[%s] Wowee World Editor", m); } + // Camera coordinates display — useful for navigation and debugging. + if (app.hasTerrainLoaded()) { + glm::vec3 cp = app.getEditorCamera().getCamera().getPosition(); + ImGui::SameLine(vp->Size.x - 290); + ImGui::TextColored(ImVec4(0.6f, 0.7f, 0.8f, 1.0f), + "(%.0f, %.0f, %.0f)", cp.x, cp.y, cp.z); + } ImGui::SameLine(vp->Size.x - 120); ImGui::Text("%.1f FPS", ImGui::GetIO().Framerate); }