weapon field of view

Hi, i need a way to limit an angle of 90º forward and backward on my ship to lock-on the missiles, does anyone knows what i can do to achieve that?

thanks in advance

maybe Mathf.Clamp?

i read the documentation, but, i did not understood how to implement it in a pratical way, i mean, the missiles, like real ones need some time within a certain angle from the forward vector of the ship, how would I use the Clamp to set this range and check it?

thanks in advance

Check out my reply to this post:
http://forum.unity3d.com/threads/83775-Creating-a-shotgun

It’s about detecting objects within a cone and should be directly usable for your case as well.

thanks that’s just what I needed, but since i am new to unity, how is the code to set that cone you spoke of?