Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Vector3 targetPostition = new Vector3( target.position.x,
  2. this.transform.position.y,
  3. target.position.z ) ;
  4. this.transform.LookAt( targetPostition ) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement