Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vector3 target = new Vector3(0,0,0);
- target = Quaternion.AngleAxis(60, Vector3.forward) * target;
- if (Physics.Raycast(transform.position, target, 10))
- print("There is something in front of the object!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement