mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 02:36:44 +02:00
added ESC to restore to original camera in concertCamera.js
This commit is contained in:
parent
6312222eed
commit
2e2d03c58b
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue