|Topic was automatically imported from the old Question2Answer platform.
When the player on the scene enters the enemy’s field of vision, the enemy is following her. but even if there is a wall between the player and the enemy, the enemy notices the player. How do I make sure that my enemy does not see the player when a static object enters between the player and the enemy?
(My scene is 3d and there is an area from the enemy, it can see its 360 degree view.)
have you tried using a raycast ? It’s a good way of checking if there’s wall in front of your agent
bloodsign | 2021-03-01 14:48
but raycast only works for one way and I use area. I don’t know how to do it with raycast.
SDGN16 | 2021-03-01 16:51