Revert "Polishing panning"

This reverts commit 2bdef97edf.
This commit is contained in:
MusicalProgrammer
2018-05-30 20:47:05 -04:00

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 | app->debugController.active()) if (moving)
{ {
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() * 10); app->setFocalPoint(frame.translation + frame.lookVector() * 15);
} }
//app->debugCamera.setPosition(cameraPos); //app->debugCamera.setPosition(cameraPos);
if(centerCam) if(centerCam)