 //  Created by sheldon on 2016/11/17.
 //  Copyright © 2016年 kankan. All rights reserved.
 //
+
+//http://stackoverflow.com/questions/29252418/how-to-play-360-video-on-the-ios-device
 
 import UIKit
 import QuartzCore

                
                let currentAttitude = motion.attitude

//                var orientationMuliplier = 1.0
//                if UIApplication.shared.statusBarOrientation == UIInterfaceOrientation.landscapeRight {
//                    orientationMuliplier = -1.0
//                }
                
//                print(orientationMuliplier)
                
                self.leftCameraRollNode.eulerAngles.z = Float(-currentAttitude.roll)
                self.rightCameraRollNode.eulerAngles.z = Float(-currentAttitude.roll)
                
                self.leftCameraPitchNode.eulerAngles.x = Float(currentAttitude.pitch)
                self.rightCameraPitchNode.eulerAngles.x = Float(currentAttitude.pitch)
                
                self.leftCameraYawNode.eulerAngles.y = Float(currentAttitude.yaw)
                self.rightCameraYawNode.eulerAngles.y = Float(currentAttitude.yaw)
            }
        }
    }

        leftSceneView.pointOfView = leftCameraNode
        rightSceneView.pointOfView = rightCameraNode
        
    }
    
    /// Create focal spot
