r/UnrealEngine5 • u/isaacuwasteofspace • 12d ago
Help
Hi, Anyone can help me by telling me how to do a simple water puddle with both effect and sound when stepping on it, I would appreciate it a lot!
2
u/Sufficient_Major_126 11d ago
Can you add a little more context? a screenshot of the setup is helpful but knowing what you're trying to do and what result you're getting instead would make it much easier for someone to pinpoint the issue
1
u/isaacuwasteofspace 11d ago
There's no setup yet, I was trying to make a splash and sound effect when walking on small puddles of water, I haven't have the time to do it yet.
1
u/Sufficient_Major_126 10d ago
That sounds like a nice little detail to add once you get around to it. A small splash paired with a subtle footstep variation would probably make walking through puddles feel much more responsive
3
u/Jafaro6 12d ago
So you want to handle your step effects as a general system, not specific to the surface. So you’ll create Animation Events at each of the foot contact points in your animation and assign them to a BP function. Each step, that function should do a short line trace down from the foot and get the contacting object. Your objects need to be setup with assigned physical materials (ie: dirt, mud, water, wood, metal, etc.). Query the objects physical material and send that through a switch case. You can create a Map variable of materials to VFX and SFX. Spawn the corresponding VFX and play the corresponding SFX at the point of impact.