Need help with making objects appear offscreen

I’m trying to make objects appear behind the player / when the player is looking away (by toggling their visibility), i want to check the rotation distance between my line trace and the object in the level, how can i do that? Is there a better way to go about it ?

Any advice is appreciated.

Dot product:

Dot products basically measures the angle between two vectors.

1 = facing same way
0 = at right angles
-1 = facing opposite way

You just need to check that it’s between -1 and 0.

It works great! Thank you very much for taking the time to explain and showing me examples!