added ESC to restore to original camera in concertCamera.js

This commit is contained in:
Philip Rosedale 2014-06-26 16:53:19 -07:00
parent 6312222eed
commit 2e2d03c58b

View file

@ -56,6 +56,11 @@ function keyPressEvent(event) {
Camera.setPosition(cameraLocations[choice - 1]);
Camera.keepLookingAt(cameraLookAts[choice - 1]);
}
if (event.text == "ESC") {
cameraNumber = 0;
freeCamera = false;
restoreCameraState();
}
if (event.text == "0") {
// Show camera location in log
var cameraLocation = Camera.getPosition();