Eonirr

Untitled

Dec 27th, 2022
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if (Physics.Raycast(ray, out hit))
  2. {
  3. targetPoint = hit.point;
  4. }
  5. else
  6. {
  7. targetPoint = ray.GetPoint(range);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment