This is my first unity project and I need some advice. How do i make puddles in my game. and how do I stop rain from falling inside? thanks
These questions don’t really have ‘right answers’ per se, but for puddles, I imagine a simple plane mesh embedded in the terrain (or wherever the puddle is) with an appropriate shader would suffice. The shader for something like this could be more or less arbitrarily complex, but at minimum, you’d probably want an alpha-blended ‘water’ texture, maybe with some simple environment mapping to simulate reflectivity. (Maybe others will have better suggestions.)
As for the second question, there’s no built-in feature that will stop a rain effect from being visible inside, so you’ll just have to figure out what your requirements are and implement accordingly. If you need some suggestions though, perhaps you could tell us how you’re doing your rain effect.
for my rain effect, I have a particle emmiter attatched to my first person controller … Itried to post my level in this topic so it would be easier for everyone to know what I was talking about but I got an error saying post mode unspecified … how do I fix this?
Not sure about the posting problem, but as far as the rain effect goes, you’ll probably need to detect when your player is ‘inside’ (e.g. using triggers), and activate/deactivate the particle emitter accordingly.
About the rain, simply put, you would make a particle emitter and change stuff around to make it like rain.
Then you could simply add a World Particle Collider to the particle emitter and set the bounce to 0 and as long as your indoors had a roof over it and the rain emitted from above the roof, then you wouldn’t have any in your indoor area.
OK, I used the trigger and it worked, THANKS