so I am looking to make a vision/radius for my enemy so when he sees me he will attack and when I am out of range he will stop. I am aware of the radius method of two objects close to each other but I would like the “radius” to not go through walls and certain objects. I am not sure if raycasting (I have zero experience with this at the moment) would be the best option or if there are better choices.
Check out this example project:
1 Like