Skip to content
Browse files

Fix wrong tilt direction south of the equator.

  • Loading branch information...
1 parent 6f9cbbc commit b7ff202dc102020bd09bc640554448b7b1d11c5a @bagnell bagnell committed Sep 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Scene/CameraSpindleController.js
View
4 Source/Scene/CameraSpindleController.js
@@ -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;

0 comments on commit b7ff202

Please sign in to comment.
Something went wrong with that request. Please try again.