Stealth Game - line of sight issue

Hello! New to Cospaces Forums first of all and second, I need some help. I am trying to make a stealth part of my game figured out, and I’m going to use like if they see you in certain line of vision they can see you, but the problem is the line of sight can go through walls! Is there a way I can make it not go through the walls?
btw here is the link:

Hi @Edward_Zervigon,

there is no simple way to do it.
One of the solutions could be: when the character collides with cone of sight, create a ray object from eyes to the object and check if it collides with anything.

1 Like

Hi @Edward_Zervigon,

See When object 'sees' another object for previous answers to a similar question.

Geoff @ TechLeap

1 Like