Skip to content

Commit

Permalink
Use HeadingPitchRoll for view orientation options
Browse files Browse the repository at this point in the history
  • Loading branch information
wallw-teal committed Jul 13, 2017
1 parent bcb0ad7 commit 040c84f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Source/Scene/ScreenSpaceCameraController.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ define([
'../Core/destroyObject',
'../Core/DeveloperError',
'../Core/Ellipsoid',
'../Core/HeadingPitchRoll',
'../Core/IntersectionTests',
'../Core/isArray',
'../Core/KeyboardEventModifier',
Expand Down Expand Up @@ -35,6 +36,7 @@ define([
destroyObject,
DeveloperError,
Ellipsoid,
HeadingPitchRoll,
IntersectionTests,
isArray,
KeyboardEventModifier,
Expand Down Expand Up @@ -447,11 +449,7 @@ define([
var scratchCartesianTwo = new Cartesian3();
var scratchCartesianThree = new Cartesian3();
var scratchZoomViewOptions = {
orientation: {
heading: 0,
pitch: 0,
roll: 0
}
orientation: new HeadingPitchRoll()
};

function handleZoom(object, startPosition, movement, zoomFactor, distanceMeasure, unitPositionDotDirection) {
Expand Down

0 comments on commit 040c84f

Please sign in to comment.