Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Vector3 target = new Vector3(0,0,0);
  2. target = Quaternion.AngleAxis(60, Vector3.forward) * target;
  3.  
  4. if (Physics.Raycast(transform.position, target, 10))
  5. print("There is something in front of the object!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement