Hi again
Im trying to resolve this problem:
I have an enemy (V1) and player (V2) vectors. I subtract them and get that line between. Then Im using "Get Vector Length" to get its length. And checking when enemy is near to the player by float value of length. This script is attached on enemy, so he has somehow range of attack. When player comes near, enemy attacks.
If you imagine enemy eg. as spider.
On the picture spider head is facing down. Should attack only what he see and this is the reason why I want make detection circle only by half (so red part shouldnt be taken, because of his back).
And of course enemy can rotate, so even this red area should rotate too, depend on its front (head).
Any tips?
thanks
Martin