hi .
y try on google, and unity answers, but not working yet.
please, is there a simple code to make raycast do not pass through the walls andkill enemies ?
in other words, i have asoldier enemy hiding on treesand walls, but rycast always hit and kill.
please , how can i make , or compare tag, when raycast hit the wall,dontkill the enemy ?
please need help on this.
i apreciatte so much any help.
.
note:
dontput my raycast code i am using because is very simple and basic raycast code.
ok … i madea new leyer, and anemies, and walls , go on sameleyer … some times working, and some times not.
i will try more with anothers collides …
thanks for any help /
here is the video…
the wall is working, and protect now the enemy, but
when the enemy is very close to the wall… there is no more protection