
C
Publisher
cookiepolice
Godot Material Footsteps 3D
3D
Footstep Audio GridMap Metadata Sound Environment Interaction Components
Easiest and most reliable way in Godot to implement material footsteps. This addon supports GridMap material footsteps too.
Godot Material Footsteps
A Godot 3D addon for automatically playing footstep sounds based on the material a character walks on. This addon supports mainly a metadata-based solution, but it also supports GridMap.
Check it out on Godot Asset Library!
Table of Contents
Usage
In your player scene:
- Add a
MaterialFootstepPlayer3D
node pointing under your character.
- Add a
In the Inspector for the
MaterialFootstepPlayer3D
:- Set
target_character
to your player. - Fill in
material_footstep_sound_map
withMaterialFootstep
resources mapping material names to sound lists. - Set a
default_material_footstep_sound
.
- Set
In your level scene:
- Select any floor (e.g.
StaticBody3D
or any ancestor or descendant of thatStaticBody3D
). - In the Inspector, under Metadata, add a new key-value pair:
- Key:
surface_type
- Value: matching the names in your
material_footstep_sound_map
.
- Key:
- Select any floor (e.g.
If you are using the GridMap node. It is the same process. However, since the GridMap does not support any type of metadata, you instead have to match each tile's name to whatever you put in your
material_footstep_sound_map
.
Support
Star this repository, contribute and open issues.