Jump to content

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


photo

Recommended Posts

Posted

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

Posted

Hi @silent

Yes that is correct two major floor surfaces, landscapeterrain object and static meshes. Yes I have separate meshes for each floors.

Many thanks, 

 

Ben

Posted

I am using the latest SDK (2.16.1), I very much appreciate any help you can give me! 

Many thanks, 

Ben

Posted

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
Posted

Hi @moody_pooch!

This is fantastic! Many thanks for helping me with this.

I think I understand how your solution works, ill try it out in my project!

 

Many thanks, 

 

Ben 

  • Like 1
×
×
  • Create New...