Skip to content

An "automatic" footstep detector for humanoid animators.

License

Notifications You must be signed in to change notification settings

dropecho/unity_footstep

Repository files navigation

An "automatic" footstep detector for humanoid animators.

This can be setup to automatically detect footsteps, or you can setup animation events and trigger the footstep detector through those, allowing you to use just the surface detection part.

An example audio setup is included (the foot step audio component).

Surface types can be detected in a variety of ways, by tag, material, terrain texture index, or by attaching a FootStepSurface component.

Example Video

Install

To use this, install it through the package manager.

You can click on the code button in the top right, copy that or just copy this [email protected]:dropecho/unity_footstep.git

Open unity, and open the package manager, in the dropdown select install from git, and paste that in.

image

image

It should then show up in the list of installed packages
image

Quickstart

For the most basic setup, do this
image
You should be able to start playmode and have it begin working.

Look at usage below for more details.

Usage

Attach a foot step detector to the desired game object and assign the animator.
image

Create a surface type (under dropecho/character/surfacetype), and setup the desired data.
image

Assign the surface type to the foot step detector.
image

To play audio, attach a foot step audio component, and assign a surface type and audio clip, it will play the clip based on either the surface type index (i.e. surface 0 is clip 0), or the default clip if no surface is detected.
image

About

An "automatic" footstep detector for humanoid animators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages