Advertisement
Guest User

Untitled

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