basic camera movement
This commit is contained in:
@@ -53,7 +53,7 @@ void WorldRenderer::Update() {
|
||||
ImVec2 mouseDelta = ImGui::GetIO().MouseDelta;
|
||||
const float relativeX = mouseDelta.x / (float)Display::GetWindowWidth() * 2;
|
||||
const float relativeY = mouseDelta.y / (float)Display::GetWindowHeight() * 2;
|
||||
MoveCam(relativeX, relativeY);
|
||||
MoveCam(mouseDelta.x, mouseDelta.y);
|
||||
}
|
||||
if (io.MouseWheel != 0) {
|
||||
ChangeZoom(io.MouseWheel);
|
||||
|
||||
Reference in New Issue
Block a user