Jump to content

How to add footstep sound effects to first person controller which change depending on the surface


photo

Recommended Posts

Hi All,

As mentioned in the post of my project in the showcase part of the forum, it would be amazing if I could implement footstep sound effects which change depending on the surface they interact with e.g a crunch when walking through grass, hard echo on stone surfaces etc etc. Obviously as I have no knowledge of programming would it be possible to suggest if this might be a simple feature to add? And if so, how might I go about this?

Many thanks, 

 

Ben

Link to comment

Hi Ben,

Here is the updated FirstPersonController component.

This controller works similar to the previous one. You need to add SoundSources for right and left footstep for each surface.

image.png

For LandscapeTerrain object surfaces select Mask index (the same index from LandscapeLayerMap):

image.png

For MeshStatic select Intersection Mask of required surface:

image.png

FirstPersonController.cs

  • Like 5
Link to comment
×
×
  • Create New...