- Home /
Standard assets water interact with objects
Is there a way to make this happen? Ex. when my player walks in it, there is a splash.
Answer by CmdrZin · Jan 19, 2021 at 02:57 AM
A couple of ideas.
1. Make an Empty object and add a collider to it to detect OnEntry() or OnTriggerEntry(). Also check IsKenetic so it doesn't move. Use a squashed Sphere or Box collider.
2. Trigger a Splash audio clip on entry.
3. Trigger an Explosion, made to look like a water splash, at the location of the object's entry. Use the objects position.
Have fun.
Thank you! How would I make the splash go were the player is moving with a script? I'm still a bit new to Unity.
Look up the tutorials on Explosions. I think you can change the direction of the particle spray.
Your answer
Follow this Question
Related Questions
Standard environment asset 0 Answers
Standard Asset water material is pink 4 Answers
Unity Water (Basic) Not Working properly? 1 Answer
No water on standard assets 1 Answer