I got a spot light for my character which is 1ft behind him or so in order to not cause a massive blow up of light infront of camera because of fog, when I move around sometimes the light gets blocked by a wall or whatever behind me.
How can I make it so it does not get block by wall and whatever behind me while still casting shadows and effecting world.
Attach it to a spring arm and enable collision on the spring arm, maybe with a custom sphere attached to the spring arm, then parent the light to the sphere?
Another alternative is to raycast for geometry between the light and the player, and update the “casts shadows” property on the geometry. (Remember which geometry that was, and set the flag back when it’s no longer on the list, though.)