mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-02 08:11:58 -04:00
Speed Vector for Link and Epona added to the Player Info debug ImGUI window for debugging.
This commit is contained in:
@@ -227,6 +227,12 @@ namespace dusk {
|
||||
: "Speed: ?\n"
|
||||
);
|
||||
|
||||
ImGuiStringViewText(
|
||||
player != nullptr
|
||||
? fmt::format("Speed Vector: {: .4f}, {: .4f}, {: .4f}\n", player->speed.x, player->speed.y, player->speed.z)
|
||||
: "Speed Vector: ?, ?, ?\n"
|
||||
);
|
||||
|
||||
ImGui::Separator();
|
||||
ImGui::Text("Epona");
|
||||
ImGuiStringViewText(
|
||||
@@ -247,6 +253,13 @@ namespace dusk {
|
||||
: "Speed: ?\n"
|
||||
);
|
||||
|
||||
ImGuiStringViewText(
|
||||
horse != nullptr
|
||||
? fmt::format("Speed Vector: {: .4f}, {: .4f}, {: .4f}\n", horse->speed.x, horse->speed.y, horse->speed.z)
|
||||
: "Speed Vector: ?, ?, ?\n"
|
||||
);
|
||||
|
||||
|
||||
ShowCornerContextMenu(m_playerInfoOverlayCorner, m_debugOverlayCorner);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user