Spaces:
Running
Running
Update orbit-camera.js
Browse files- orbit-camera.js +1 -1
orbit-camera.js
CHANGED
|
@@ -581,7 +581,7 @@ OrbitCameraInputKeyboard.prototype.update = function (dt) {
|
|
| 581 |
// Pitch (up/down) — Shift+Up => orbit up, Shift+Down => down
|
| 582 |
var pitchDir = (up ? 0 : 1) - (dn ? 0 : 1); // up=+1, down=-1
|
| 583 |
if (pitchDir !== 0) {
|
| 584 |
-
var dPitch =
|
| 585 |
|
| 586 |
var currPitch = this.orbitCamera.pitch;
|
| 587 |
var currYaw = this.orbitCamera.yaw;
|
|
|
|
| 581 |
// Pitch (up/down) — Shift+Up => orbit up, Shift+Down => down
|
| 582 |
var pitchDir = (up ? 0 : 1) - (dn ? 0 : 1); // up=+1, down=-1
|
| 583 |
if (pitchDir !== 0) {
|
| 584 |
+
var dPitch = pitchDir * this.orbitPitchSpeedDeg * dt;
|
| 585 |
|
| 586 |
var currPitch = this.orbitCamera.pitch;
|
| 587 |
var currYaw = this.orbitCamera.yaw;
|