Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- within_fov( start_origin, start_angles, end_origin, fov )
- {
- normal = VectorNormalize( end_origin - start_origin );
- forward = AnglesToForward( start_angles );
- dot = VectorDot( forward, normal );
- return dot >= fov;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement