How to block rainfall in the presence of a roof ?
Use Unity 2019.2.7f2. In my scene I have a character with the rain effect on it (using the particle system). All right. The character then passes under a roof, but the rain effect crosses the roof and continues to be seen on the character. How can I stop the rain when the character is under a roof ?
Comment
Answer by TreyH · Nov 21, 2019 at 10:03 PM
There's a CollisionModule on particle systems that can accomplish that. You'll configure it for which kinds of objects / layers it can collide with and a few settings for what happens to each particle during collision. For rain, you might end up using these as a baseline:
Using those, I had the following behavior:
rain-particle-settings.png
(12.9 kB)
particle-rain.gif
(446.0 kB)
Your answer
![](https://koobas.hobune.stream/wayback/20220612215131im_/https://answers.unity.com/themes/thub/images/avi.jpg)