I have set of pipes(edge colliders) in my scene, through which I pass the ball. 

```
     ____|  |  <---Edge colliders
   o _______|

```

How do I move the ball in upward direction. For above this pipe I have to move along the positive x direction first, then positive y direction. How can I detect that.?

```
mRigidBody.AddForce (new Vector2 (moveSpeed,moveSpeed));

```

I tried this, but this can be used to move one direction at a time