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