TBOrbit.OnTwoFingerDrag C# (CSharp) Method

OnTwoFingerDrag() public method

public OnTwoFingerDrag ( DragGesture gesture ) : void
gesture DragGesture
return void
    void OnTwoFingerDrag( DragGesture gesture )
    {
        //Debug.Log( "OnTwoFingerDrag " + e.Phase + " @ Frame " + Time.frameCount );

        if( allowPanning )
        {
            Vector3 move = -0.02f * panningSensitivity * 
				( panningPlane.right * gesture.DeltaMove.x + panningPlane.up * gesture.DeltaMove.y );
            
            if( invertPanningDirections )
                IdealPanOffset -= move; 
            else
                IdealPanOffset += move;

            nextDragTime = Time.time + 0.25f;
        }
    }