Search Unity

finding the Right hand side of an object

Discussion in 'Scripting' started by tre4bax, Apr 21, 2015.

  1. tre4bax

    tre4bax

    Joined:
    Aug 31, 2013
    Posts:
    22
    Suppose l want to position something to the right of a game object. | can find the game object and in transform it has a Right property that represents this access but I'm not sure how to use it. I'm assuming I have to use the difference between local and world coordinates but can it quite figure out how so same pointers would help.

    Once I've done that I want to be able to position to the right in front of and above an object...

    Any hints gratefully recieved
     
  2. proandrius

    proandrius

    Unity Technologies

    Joined:
    Dec 4, 2012
    Posts:
    544
    gotiobg likes this.