Hi people i am new in here and i hope you can help me a little.
I am making a game for iphone where i would like the players to have a cone of sight. It should detect the presence of another player in its range.
I was thinking of using raycast, for the size of the sprites each one should have 5 raycast evenly distributed forming a cone. I was wondering if this was a valid option, if having 5 raycasts per sprite was too much, and if there is a better method i missed... ( like somehow create 2 raycasts - those would be the start and end of the cone and then calculate the area between them, don't know if this is posible and i think it would not work with obstacles in the middle...)
Thanks in advance,
Pablo
I am making a game for iphone where i would like the players to have a cone of sight. It should detect the presence of another player in its range.
I was thinking of using raycast, for the size of the sprites each one should have 5 raycast evenly distributed forming a cone. I was wondering if this was a valid option, if having 5 raycasts per sprite was too much, and if there is a better method i missed... ( like somehow create 2 raycasts - those would be the start and end of the cone and then calculate the area between them, don't know if this is posible and i think it would not work with obstacles in the middle...)
Thanks in advance,
Pablo
