Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var PointVector : Vector3;
  2.  
  3. PointVector = Point.position - Camera.position;
  4. transform.foward = PointVector.normalized;
  5. if ((PointVector.magnitude > camera.farClipPlane) || (PointVector.magnitude < camera.nearClipPlane))
  6. {
  7.   magic;
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement