@ Override public void onRotationSensor ( long timeStamp , float rotationW , float rotationX , float rotationY , float rotationZ , float gyroX , float gyroY , float gyroZ ) { GVRCameraRig cameraRig = null ; if ( mMainScene != null ) { cameraRig = mMainScene . getMainCameraRig ( ) ; } if ( cameraRig != null ) { cameraRig . setRotationSensorData ( timeStamp , rotationW , rotationX , rotationY , rotationZ , gyroX , gyroY , gyroZ ) ; updateSensoredScene ( ) ; } }
Called to reset current sensor data .