Add `rotateBy` controls

feature/threejs-update
Matthew Harrison-Jones 2016-11-18 11:06:01 +00:00
rodzic 141f2edbbc
commit 0f2deaf85e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2BFA474C82C30A2C
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -56,7 +56,11 @@ class Orbit extends EventEmitter {
// Rotate (left and right)
rotateTo(angle, animate) {}
rotateBy(angleDelta, animate) {}
rotateBy(angleDelta, animate) {
var controls = this._controls;
controls.rotateLeft(angleDelta);
}
// Fly to the given point, animating pan and tilt/rotation to final position
// with nice zoom out and in