Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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: