Search Unity

Calculate move direction while moving in circle

Discussion in '2D' started by tiendung717, Oct 20, 2014.

  1. tiendung717

    tiendung717

    Joined:
    Aug 9, 2014
    Posts:
    5
    Hello forum,
    I'm a new bie in Unity. Please help me solve a problem:

    Suppose I have a player that move with veclocity is v and direction is Vector3.right, then I press down, player will rotate around target, then if I press button up, player will move with direction as figure in attach file.

    Could you plz suggest me how to calculate direction of velocity when release button ?

    Sorry about my English
     

    Attached Files: