Skip to content

Commit

Permalink
Fix wrong tilt direction south of the equator.
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnell committed Sep 28, 2012
1 parent 6f9cbbc commit b7ff202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Scene/CameraSpindleController.js
Expand Up @@ -223,8 +223,8 @@ define([
};

CameraSpindleController.prototype._moveVertical = function(angle) {
if (typeof this.constrainedAxis !== 'undefined') {
var p = this._camera.position.normalize();
var p = this._camera.position.normalize();
if (typeof this.constrainedAxis !== 'undefined' && !p.equalsEpsilon(this.constrainedAxis, CesiumMath.EPSILON2)) {
var dot = p.dot(this.constrainedAxis.normalize());
if (CesiumMath.equalsEpsilon(1.0, Math.abs(dot), CesiumMath.EPSILON3) && dot * angle < 0.0) {
return;
Expand Down

0 comments on commit b7ff202

Please sign in to comment.