Advertisement
Rendflex

Untitled

Oct 13th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. within_fov( start_origin, start_angles, end_origin, fov )
  2. {
  3. normal = VectorNormalize( end_origin - start_origin );
  4. forward = AnglesToForward( start_angles );
  5. dot = VectorDot( forward, normal );
  6. return dot >= fov;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement