Skip to content

Commit

Permalink
start looking at 180 degrees, which is the center of the video
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagopnts committed Jan 25, 2017
1 parent e04fc4b commit 6c4cccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NYT360CameraController.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ - (instancetype)initWithView:(SCNView *)view motionManager:(id<NYT360MotionManag

_pointOfView = view.pointOfView;
_view = view;
_currentPosition = CGPointMake(0, 0);
_currentPosition = CGPointMake(3.14, 0);
_allowedDeviceMotionPanningAxes = NYT360PanningAxisHorizontal | NYT360PanningAxisVertical;
_allowedPanGesturePanningAxes = NYT360PanningAxisHorizontal | NYT360PanningAxisVertical;

Expand Down

1 comment on commit 6c4cccd

@caplan
Copy link
Contributor

@caplan caplan commented on 6c4cccd Jul 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, I think this change is causing the following block to be entered prematurely on line 119:

if (distance(CGPointZero, self.currentPosition) > minimalRotationDistanceToReport) {
    [self reportInitialCameraMovementIfNeededViaMethod:NYT360UserInteractionMethodGyroscope];
}

Please sign in to comment.