From 2bdef97edf395ac641b0cd9e8f698328d452e6ca Mon Sep 17 00:00:00 2001 From: MusicalProgrammer <38636805+MusicalProgrammer@users.noreply.github.com> Date: Mon, 30 Apr 2018 12:02:52 -0400 Subject: [PATCH] Polishing panning --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 697e85b..a5f218c 100644 --- a/main.cpp +++ b/main.cpp @@ -879,7 +879,7 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) { CoordinateFrame frame = app->debugCamera.getCoordinateFrame(); - if (moving) + if (moving | app->debugController.active()) { cameraPos = frame.translation; if(forwards) @@ -903,7 +903,7 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) { frame.translation = Vector3(cameraPos.x, cameraPos.y, cameraPos.z) + frame.rightVector()*moveRate; } moving=false; - app->setFocalPoint(frame.translation + frame.lookVector() * 15); + app->setFocalPoint(frame.translation + frame.lookVector() * 10); } //app->debugCamera.setPosition(cameraPos); if(centerCam)