Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var PointVector : Vector3;
- PointVector = Point.position - Camera.position;
- transform.foward = PointVector.normalized;
- if ((PointVector.magnitude > camera.farClipPlane) || (PointVector.magnitude < camera.nearClipPlane))
- {
- magic;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement