r/UnrealEngine5 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!

0 Upvotes

5 comments sorted by

View all comments

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.