Roll sphere with finger problem

Hi guys
First, i’m pleased with my first post in unity forum :roll_eyes:

I started by making rolling a rigidbody sphere with my finger, i started with small JS code, but i found strange problem, the code let me roll the sphere in right and left direction only, but i need roll the ball in ALL directions, i hope help me find my mistake.

The Code:

var speed : float = 0.1;

function FixedUpdate ()
{
	if (Input.touchCount > 0  Input.GetTouch(0).phase == TouchPhase.Moved)
		{
		var touchDeltaPosition:Vector2 = Input.GetTouch(0).deltaPosition;

		rigidbody.AddForce(touchDeltaPosition.x * speed,touchDeltaPosition.y * speed, 0);
		}
}

I think you need to use a Vector3 to do what you want.

Can you tell me how?

IDK, lol.

In line 7 where it says Vector2, change it to Vector3?