var depth = 10.0;
var speed : int;
var friction : float;
var lerpSpeed : float;
private var xDeg : float;
private var yDeg : float;
private var fromRotation : Quaternion;
private var toRotation : Quaternion;
 private var factor : float = 0.6;
private var v3StartPos : Vector3;
private var v3StartRot : Vector3;

function Start ()

{
		xDeg=0;
		yDeg=0;
     Screen.showCursor = false;

}

 

function Update ()
{

     var mousePos = Input.mousePosition;

     var wantedPos = Camera.main.ScreenToWorldPoint (Vector3 (mousePos.x, mousePos.y, depth));

     transform.position = wantedPos;
	
}