Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
  2. RaycastHit hitinfo;
  3. if (Physics.Raycast(ray, out hitinfo))
  4. {
  5. if (Dist(hitinfo.point) > 1f)
  6. {
  7.  
  8. points.Add(hitinfo.point);
  9. liner.positionCount = points.Count;
  10. liner.SetPositions(points.ToArray());
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement