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.
This commit is contained in:
Kelsi 2026-05-06 02:10:50 -07:00
parent 318f255918
commit 49b7268dc9

View file

@ -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);
}