Spotlight Goes Through objects

Hey Guys! So this might be easy for you guys that have a lot of experience with the engine but im quite new. I Made a laser pointer and a flashlight for my project using a spotlight. the thing is: the light goes through objects like the terrain; blocks and stairs.

I dont know how to fix it so I would apreciate some help. Thx Guys!

Do you mean the light cone of the spotlight using volumetric exponential height fog?
If instead you mean the light itself: make sure the objects the light is going through and the spotlight itself have “cast shadow” enabled in details.

(Also if it only happens in game with movable objects then you might have built the light with the spotlight set to static and that’s the reason why your movable objects are ignoring it)

Ill try it out. thanks for the reply

It Does Not work. Can it be becouse i have the spot light lengh so big that it goes across the wall? if so how can i use it so that that doenst happen? thank you.

No the lenght shouldn’t be a problem at all because all objects in its way should cast a shadow. Instead your meshes could be the problem, if their faces don’t have backfaces. To solve this without rebuilding your meshes, in your meshes StaticMeshActor properties in lighing try to set Cast Shadows As Two Sided or use a Two Sided Material. I hope this works!

Thanks for the reply! Ill try it out and keep you informed

It did not work. Dude, thx for the time spent but im going to simply surrender to the idea of making it. thx anyways

you gotta turn on “cast volumetric shadow” in the details of spot light

1 Like

Thank youuuuuuuuu

1 Like