Search Unity

Cube movement 2d grid camera position.

Discussion in 'Scripting' started by Pedro-Garlaschi, Dec 6, 2012.

  1. Pedro-Garlaschi

    Pedro-Garlaschi

    Joined:
    Dec 6, 2012
    Posts:
    8
    Hi Guys !

    I have this situation ....
    On grid 2 and when i slide my mouse in horizontal i walk hon the columns and vertical on the lines ... Thats great ! But when i rotate the camera around the cube that change and i dont know how i can calculate the correct direction of the cube ....

    I put a really nice draw , to explain better :) !

    Cheers guys !
     

    Attached Files: