fix camera matrix hacks

This commit is contained in:
Asuro
2025-03-29 17:10:26 +01:00
parent dbc65fec9a
commit ef7833caa6
5 changed files with 47 additions and 59 deletions

View File

@@ -1,3 +1,4 @@
#include "Global.h"
#include "Instance.h"
#include "Mesh.h"
#include "Tools.h"
@@ -75,6 +76,7 @@ namespace Tools
auto& shared = Game::GetShared();
auto& debug = Game::GetInstance().DebugData;
auto& level = Game::GetInstance().GameLevel;
auto& player = Game::GetInstance().Player;
if (rendering.UIVisible == Game::UIVisibilityState::Debug)
{
@@ -148,6 +150,10 @@ namespace Tools
level = {};
level.Setup(shared.Game);
}
ImGui::SliderFloat("Mouse Sensitivity", &player.MouseSensitivity, 0.1f, 5.0f);
ImGui::SliderFloat("Player Speed", &player.MovementSpeed, 1.0f, 30.0f);
ImGui::Checkbox("Show ImGui Demo", &debug.ShowImguiDemo);
ImGui::Checkbox("Show Stats", &debug.ShowStats);
if (debug.ShowImguiDemo) ImGui::ShowDemoWindow(&debug.ShowImguiDemo);