Polishing panning

This commit is contained in:
MusicalProgrammer
2018-04-30 12:02:52 -04:00
parent df5076e90f
commit 2bdef97edf

View File

@@ -879,7 +879,7 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) {
CoordinateFrame frame = app->debugCamera.getCoordinateFrame(); CoordinateFrame frame = app->debugCamera.getCoordinateFrame();
if (moving) if (moving | app->debugController.active())
{ {
cameraPos = frame.translation; cameraPos = frame.translation;
if(forwards) 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; frame.translation = Vector3(cameraPos.x, cameraPos.y, cameraPos.z) + frame.rightVector()*moveRate;
} }
moving=false; moving=false;
app->setFocalPoint(frame.translation + frame.lookVector() * 15); app->setFocalPoint(frame.translation + frame.lookVector() * 10);
} }
//app->debugCamera.setPosition(cameraPos); //app->debugCamera.setPosition(cameraPos);
if(centerCam) if(centerCam)