I have wind in my project and can change the direction as needed, but what I’m wanting to do, is find out how I can tell if player is shielded by the wind if they are behind a wall which should block the wind from the player if the player is up against it. I have included a little drawing of what I mean. I also only want the player to be shielded if they are a certain distance from the wall, approx 300 units, and any further than that, then they are no longer protected by the wall. Also, it shouldn’t matter what way the player is facing. This is an FPS character with just the arms and camera.
The wind direction is a float ranging from 0-360.
Now i’m sure i should be using some sort of Trace here but not sure which one and the best way to go about it . Any help would be greatly appreciated.